Skip to contentSkip to conversation

opensm/osm_helper.c: cosmetics - move define closer to the relevant code

PATCH Applied Yevgeny Kliteynik 2 participants 2 messages Sep 7, 2010 – Sep 9, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_helper.c: cosmetics - move define closer to the relevant code

OSM_SA_METHOD_STR_UNKNOWN_VAL refers to ib_sa_method_str[]. Moving it closer to the array.

---
 opensm/opensm/osm_helper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
opensm/opensm/osm_helper.c +2 -2
index 0233e70..58bc86b 100644
@@ -84,6 +84,8 @@ static const char *ib_sa_method_str[] = {
 	"UNKNOWN"		/* 16 */
 };
 
+#define OSM_SA_METHOD_STR_UNKNOWN_VAL 0x16
+
 static const char *ib_sa_resp_method_str[] = {
 	"RESERVED",		/* 80 */
 	"SubnAdmGetResp",	/* 81 */
@@ -110,8 +112,6 @@ static const char *ib_sa_resp_method_str[] = {
 	"UNKNOWN"
 };
 
-#define OSM_SA_METHOD_STR_UNKNOWN_VAL 0x16
-
 static const char *ib_sm_method_str[] = {
 	"RESERVED0",		/* 0 */
 	"SubnGet",		/* 1 */
Signature · 6 lines
1.6.2.4

--
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): 4C865458.9030903-VPRAkNaXOzVS1MOuV/[email protected]