diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-09-25 19:57:46 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-03 22:24:28 +0200 |
commit | a3557d4d485322ebc60ca7f11616695c5dd69383 (patch) | |
tree | 43a2501d711a01c997ba2341fdefd78a283c7c0a /drivers/net/wireless/rtlwifi | |
parent | rtlwifi: rtl8192_common: Fix smatch errors and warnings in rtl8192c/dm_common.c (diff) | |
download | linux-a3557d4d485322ebc60ca7f11616695c5dd69383.tar.xz linux-a3557d4d485322ebc60ca7f11616695c5dd69383.zip |
rtlwifi: Fix smatch warning in pci.c
Smatch reports the following:
CHECK drivers/net/wireless/rtlwifi/pci.c
drivers/net/wireless/rtlwifi/pci.c:739 _rtl_pci_rx_interrupt() warn: assigning (-98) to unsigned variable 'stats.noise'
The variable 'stats.noise' is not used. That initializer is removed.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 2b6d3e0afef0..0f494444bcd1 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -736,7 +736,6 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw) struct rtl_stats stats = { .signal = 0, - .noise = -98, .rate = 0, }; int index = rtlpci->rx_ring[rx_queue_idx].idx; |