aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Silver <[email protected]>2024-03-09 19:47:22 +0200
committerGreg Kroah-Hartman <[email protected]>2024-03-25 19:00:39 +0100
commitd1a2e2cb79ca39ae879f3b839a84543f3995b96c (patch)
treed4a4d89894ae4e7ed008c7609c786ec1bf45196e
parent8baa558953e9791d84a30e4d4a03667dd7123794 (diff)
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: Ariel Silver <[email protected]> Tested-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/rtl8192e/rtl8192e/rtl_dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
index c34087af973c..4c67bfe0e8ec 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
@@ -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-----------------------------*/