diff options
author | Hernán Gonzalez <hernan@vanguardiasur.com.ar> | 2018-02-27 19:31:34 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-28 11:39:40 -0500 |
commit | 4f4aaa1720a3dac0e7afb51bf1177eb66d9c2172 (patch) | |
tree | 41c33a853bf80376d8ee5a24740d79ffae28d1fc /drivers/net/ethernet/qlogic/qed/qed_iwarp.c | |
parent | 2824db741b650fc22f066924a2bfa3fb47054b6d (diff) | |
download | linux-stable-4f4aaa1720a3dac0e7afb51bf1177eb66d9c2172.tar.gz linux-stable-4f4aaa1720a3dac0e7afb51bf1177eb66d9c2172.tar.bz2 linux-stable-4f4aaa1720a3dac0e7afb51bf1177eb66d9c2172.zip |
qlogic/qed: Constify *pkt_type_str[]
Note: This is compile only tested as I have no access to the hw.
Constifying and declaring as static saves 24 bytes.
add/remove: 0/1 grow/shrink: 0/0 up/down: 0/-24 (-24)
Function old new delta
pkt_type_str 24 - -24
Total: Before=3599256, After=3599232, chg -0.00%
Signed-off-by: Hernán Gonzalez <hernan@vanguardiasur.com.ar>
Acked-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_iwarp.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_iwarp.c b/drivers/net/ethernet/qlogic/qed/qed_iwarp.c index ca4a81dc1ace..03ad4eeac7f8 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_iwarp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_iwarp.c @@ -1784,7 +1784,7 @@ enum qed_iwarp_mpa_pkt_type { /* fpdu can be fragmented over maximum 3 bds: header, partial mpa, unaligned */ #define QED_IWARP_MAX_BDS_PER_FPDU 3 -char *pkt_type_str[] = { +static const char * const pkt_type_str[] = { "QED_IWARP_MPA_PKT_PACKED", "QED_IWARP_MPA_PKT_PARTIAL", "QED_IWARP_MPA_PKT_UNALIGNED" |