bnx2x: Improve code around bnx2x_tests_str_arr
authorMerav Sicron <meravs@broadcom.com>
Sun, 23 Sep 2012 03:12:23 +0000 (03:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2012 19:46:44 +0000 (15:46 -0400)
commit5889335c506bc50b03266251ac3c8711b674ba7a
tree027181d2930ea6aa0c7ced685bb16f4caaf648d9
parentb8f37a4aa053c68836deca1ddeb509ce6f5ec0ae
bnx2x: Improve code around bnx2x_tests_str_arr

This patch changes the definition of bnx2x_tests_str_arr from static char
pointer to static const char bi-directional array. Also the
bnx2x_get_strings function is simplified.

Reported-by: Joe Perches <joe@perches.com>
Reported-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Merav Sicron <meravs@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c