From: Ana Rey Date: Thu, 13 Mar 2014 16:54:53 +0000 (+0100) Subject: staging: rtl8192u: Deleted 'rtl8192_beacon_stop' function in r8192U_core.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=feb600e597200a222c5ae780aa481e907f9437b1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: rtl8192u: Deleted 'rtl8192_beacon_stop' function in r8192U_core.c This patch delete the 'rtl8192_beacon_stop' function that is not used in anywhere in the driver. Fix the following sparse warning in r8192U_core.c drivers/staging/rtl8192u/r8192U_core.c:1332:6: warning: symbol 'rtl8192_beacon_stop' was not declared. Should it be static? Signed-off-by: Ana Rey Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 8995b0270e7e..1bb6143cdf0f 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -1329,24 +1329,6 @@ static void rtl8192_tx_isr(struct urb *tx_urb) } -void rtl8192_beacon_stop(struct net_device *dev) -{ - u8 msr, msrm, msr2; - struct r8192_priv *priv = ieee80211_priv(dev); - - read_nic_byte(dev, MSR, &msr); - msrm = msr & MSR_LINK_MASK; - msr2 = msr & ~MSR_LINK_MASK; - - if (NIC_8192U == priv->card_8192) - usb_kill_urb(priv->rx_urb[MAX_RX_URB]); - if ((msrm == (MSR_LINK_ADHOC<