aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2014-03-05 18:26:00 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-03-06 14:29:57 -0500
commit2903d04b5abe10393f659c5a0a4f8adec1b67b65 (patch)
tree043fc4807852de277472a216d94a013029902dd0 /drivers/net/wireless/rtlwifi
parent2d9d532ff754c352e4b55527569d0552fc33c0db (diff)
rtlwifi: rtl8723be: Fix sparse errors
Sparse reports the following: drivers/net/wireless/rtlwifi/rtl8723be/sw.c:374:14: sparse: duplicate const drivers/net/wireless/rtlwifi/rtl8723be/hw.c:2214:30: sparse: cast to restricted __le32 Reported-by: Dan Carpenter <dan.carpenter@oracle.com> 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/rtl8723be/hw.c3
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8723be/sw.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c
index fc2af714e9ec..7e70c7108d91 100644
--- a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c
@@ -2210,8 +2210,7 @@ static void rtl8723be_update_hal_rate_mask(struct ieee80211_hw *hw,
2210 2210
2211 RT_TRACE(rtlpriv, COMP_RATR, DBG_DMESG, 2211 RT_TRACE(rtlpriv, COMP_RATR, DBG_DMESG,
2212 "ratr_bitmap :%x\n", ratr_bitmap); 2212 "ratr_bitmap :%x\n", ratr_bitmap);
2213 *(u32 *)&rate_mask = EF4BYTE((ratr_bitmap & 0x0fffffff) | 2213 *(u32 *)&rate_mask = (ratr_bitmap & 0x0fffffff) | (ratr_index << 28);
2214 (ratr_index << 28));
2215 rate_mask[0] = macid; 2214 rate_mask[0] = macid;
2216 rate_mask[1] = _rtl8723be_mrate_idx_to_arfr_id(hw, ratr_index) | 2215 rate_mask[1] = _rtl8723be_mrate_idx_to_arfr_id(hw, ratr_index) |
2217 (shortgi ? 0x80 : 0x00); 2216 (shortgi ? 0x80 : 0x00);
diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/sw.c b/drivers/net/wireless/rtlwifi/rtl8723be/sw.c
index cc4ab3f9ffc8..b4577ebc4bb0 100644
--- a/drivers/net/wireless/rtlwifi/rtl8723be/sw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8723be/sw.c
@@ -370,7 +370,7 @@ MODULE_PARM_DESC(ips, "using no link power save (default 1 is open)\n");
370MODULE_PARM_DESC(fwlps, "using linked fw control power save (default 1 is open)\n"); 370MODULE_PARM_DESC(fwlps, "using linked fw control power save (default 1 is open)\n");
371MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); 371MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)");
372 372
373static const SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume); 373static SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume);
374 374
375static struct pci_driver rtl8723be_driver = { 375static struct pci_driver rtl8723be_driver = {
376 .name = KBUILD_MODNAME, 376 .name = KBUILD_MODNAME,