Skip to contentSkip to conversation

opensm/osm_subnet.c: Trivial optimization to code flow in subn_verify_sl2vl

PATCH In review Hal Rosenstock 2 participants 2 messages Nov 22, 2011 – Jan 1, 2012 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_subnet.c: Trivial optimization to code flow in subn_verify_sl2vl

---

opensm/osm_subnet.c +1 -2
index 554a950..e57bc92 100644
@@ -1077,8 +1077,7 @@ static void subn_verify_sl2vl(char **sl2vl, const char *prefix)
 	if (count < 16)
 		log_report(" Warning: Cached Option %s_sl2vl: < 16 VLs "
 			   "listed\n", prefix);
-
-	if (count > 16)
+	else if (count > 16)
 		log_report(" Warning: Cached Option %s_sl2vl: > 16 listed: "
 			   "excess VLs will be dropped\n", prefix);
 

--
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): 4ECBF1E4.3060105-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org