From: Ana Rey Date: Thu, 13 Mar 2014 16:54:55 +0000 (+0100) Subject: staging: rtl8192u: Deleted 'rtl8192_set_mode' function in r8192U_core.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5cb9b391d99bd9fb37891daa0cb52cc5f7b76bc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git staging: rtl8192u: Deleted 'rtl8192_set_mode' function in r8192U_core.c This patch delete the 'rtl8192_set_mode' 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:692:6: warning: symbol 'rtl8192_set_mode' 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 47489bdbc207..9432b68102f9 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -689,24 +689,6 @@ void dump_eprom(struct net_device *dev) RT_TRACE(COMP_EPROM, "EEPROM addr %x : %x", i, eprom_read(dev, i)); } - -/**************************************************************************** - ------------------------------HW STUFF--------------------------- -*****************************************************************************/ - - -void rtl8192_set_mode(struct net_device *dev, int mode) -{ - u8 ecmd; - read_nic_byte(dev, EPROM_CMD, &ecmd); - ecmd = ecmd & ~EPROM_CMD_OPERATING_MODE_MASK; - ecmd = ecmd | (mode<