opensm/osm_helper.c: cosmetics - move define closer to the relevant code
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.
Signed-off-by Yevgeny Kliteynik <[email protected]>
--- opensm/opensm/osm_helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
opensm/opensm/osm_helper.c +2 -2
@@ -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]
Sasha Khapyorsky
AppliedQuoted 4 lines · Yevgeny Kliteynik
OSM_SA_METHOD_STR_UNKNOWN_VALrefers to ib_sa_method_str[]. Moving it closer to the array.Signed-off-by Yevgeny Kliteynik <[email protected]>
Applied. Thanks.
Sasha
--
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