Skip to contentSkip to conversation

opensm/osm_sminfo_rcv.c: Eliminate unneeded return parameter from internal routine

PATCH In review Hal Rosenstock 2 participants 2 messages Jun 16, 2011 – Jul 5, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_sminfo_rcv.c: Eliminate unneeded return parameter from internal routine

smi_rcv_process_get_sm only returns 0 so no need for return parameter.

---

opensm/osm_sminfo_rcv.c +3 -4
index b6bc558..66eb886 100644
@@ -293,9 +293,9 @@ Exit:
 	OSM_LOG_EXIT(sm->p_log);
 }
 
-static int smi_rcv_process_get_sm(IN osm_sm_t * sm,
-				  IN const osm_remote_sm_t * p_sm,
-				  boolean_t light_sweep)
+static void smi_rcv_process_get_sm(IN osm_sm_t * sm,
+				   IN const osm_remote_sm_t * p_sm,
+				   boolean_t light_sweep)
 {
 	const ib_sm_info_t *p_smi;
 
@@ -405,7 +405,6 @@ static int smi_rcv_process_get_sm(IN osm_sm_t * sm,
 	}
 
 	OSM_LOG_EXIT(sm->p_log);
-	return 0;
 }
 
 static void smi_rcv_process_get_response(IN osm_sm_t * sm,

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4DFA05CF.1080200-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org