* [PATCH] opensm/osm_helper.c: cosmetics - move define closer to the relevant code
@ 2010-09-07 15:03 Yevgeny Kliteynik
[not found] ` <4C865458.9030903-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Yevgeny Kliteynik @ 2010-09-07 15:03 UTC (permalink / raw)
To: Sasha Khapyorsky, Linux RDMA
OSM_SA_METHOD_STR_UNKNOWN_VAL refers to ib_sa_method_str[].
Moving it closer to the array.
Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
---
opensm/opensm/osm_helper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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 */
--
1.6.2.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-09 14:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 15:03 [PATCH] opensm/osm_helper.c: cosmetics - move define closer to the relevant code Yevgeny Kliteynik
[not found] ` <4C865458.9030903-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
2010-09-09 14:27 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox