提交 d558dea7 编写于 作者: A Arend van Spriel 提交者: Greg Kroah-Hartman

staging: brcm80211: made name lookup arrays more const

The checkpatch script gave a hint that some character string arrays
probably should have an additional const keyword. This patch changes
the static const char * arrays to static const char * const arrays as
suggested getting rid of two checkpatch warnings.
Reviewed-by: NRoland Vossen <rvossen@broadcom.com>
Signed-off-by: NArend van Spriel <arend@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 79560f5a
...@@ -278,7 +278,7 @@ static bool in_send_q; ...@@ -278,7 +278,7 @@ static bool in_send_q;
#define wme_shmemacindex(ac) wme_ac2fifo[ac] #define wme_shmemacindex(ac) wme_ac2fifo[ac]
#ifdef BCMDBG #ifdef BCMDBG
static const char *fifo_names[] = { static const char * const fifo_names[] = {
"AC_BK", "AC_BE", "AC_VI", "AC_VO", "BCMC", "ATIM" }; "AC_BK", "AC_BE", "AC_VI", "AC_VO", "BCMC", "ATIM" };
#else #else
static const char fifo_names[6][0]; static const char fifo_names[6][0];
...@@ -2831,7 +2831,7 @@ static void brcms_c_wme_retries_write(struct brcms_c_info *wlc) ...@@ -2831,7 +2831,7 @@ static void brcms_c_wme_retries_write(struct brcms_c_info *wlc)
} }
#ifdef BCMDBG #ifdef BCMDBG
static const char *supr_reason[] = { static const char * const supr_reason[] = {
"None", "PMQ Entry", "Flush request", "None", "PMQ Entry", "Flush request",
"Previous frag failure", "Channel mismatch", "Previous frag failure", "Channel mismatch",
"Lifetime Expiry", "Underflow" "Lifetime Expiry", "Underflow"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册