Commit d1a2e2cb authored by Ariel Silver's avatar Ariel Silver Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8192e: Declare variable with static



Fixed sparse warning:
"'dm_rx_path_sel_table' was not declared. Should it be static?"
As dm_rx_path_sel_table is used only in rtl_dm.c it should be static.

Signed-off-by: default avatarAriel Silver <arielsilver77@gmail.com>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240309174722.3463-1-arielsilver77@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8baa5589
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ const u8 dm_cck_tx_bb_gain_ch14[CCK_TX_BB_GAIN_TABLE_LEN][8] = {
/*------------------------Define global variable-----------------------------*/
struct dig_t dm_digtable;

struct drx_path_sel dm_rx_path_sel_table;
static struct drx_path_sel dm_rx_path_sel_table;
/*------------------------Define global variable-----------------------------*/