emulex/benet: Constify *be_misconfig_evt_port_state[]
authorHernán Gonzalez <hernan@vanguardiasur.com.ar>
Tue, 27 Feb 2018 22:29:23 +0000 (19:29 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 16:39:40 +0000 (11:39 -0500)
Note: This is compile only tested as I have no access to the hw.
No benefit gained except for some self-documenting.

add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Function                                     old     new   delta
Total: Before=2757703, After=2757703, chg +0.00%

Signed-off-by: Hernán Gonzalez <hernan@vanguardiasur.com.ar>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h

index 1a49297..ff92ab1 100644 (file)
@@ -19,7 +19,7 @@
 #include "be.h"
 #include "be_cmds.h"
 
-char *be_misconfig_evt_port_state[] = {
+const char * const be_misconfig_evt_port_state[] = {
        "Physical Link is functional",
        "Optics faulted/incorrectly installed/not installed - Reseat optics. If issue not resolved, replace.",
        "Optics of two types installed – Remove one optic or install matching pair of optics.",
index 09da2d8..e8b43cf 100644 (file)
@@ -201,7 +201,7 @@ enum {
                         phy_state == BE_PHY_UNQUALIFIED ||     \
                         phy_state == BE_PHY_UNCERTIFIED)
 
-extern  char *be_misconfig_evt_port_state[];
+extern const  char * const be_misconfig_evt_port_state[];
 
 /* async event indicating misconfigured port */
 struct be_async_event_misconfig_port {