diff mbox

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

Message ID 4C865458.9030903@mellanox.co.il (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Yevgeny Kliteynik Sept. 7, 2010, 3:03 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 0233e70..58bc86b 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -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 */