GitHub/exynos8895/android_kernel_samsung_universal8895.git
10 years agostaging: rtl8821ae: debug.c: Remove version specific code
Sachin Kamat [Tue, 27 May 2014 10:32:37 +0000 (16:02 +0530)]
staging: rtl8821ae: debug.c: Remove version specific code

The code should be for the current kernel version. Remove
conditional version based code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8821ae: core.c: Remove version specific code
Sachin Kamat [Tue, 27 May 2014 10:32:36 +0000 (16:02 +0530)]
staging: rtl8821ae: core.c: Remove version specific code

The code should be for the current kernel version. Remove
conditional version based code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8821ae: compat.h: Remove version specific code
Sachin Kamat [Tue, 27 May 2014 10:32:35 +0000 (16:02 +0530)]
staging: rtl8821ae: compat.h: Remove version specific code

The code should be for the current kernel version. Remove
conditional version based code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8821ae: cam.c: Remove version specific code
Sachin Kamat [Tue, 27 May 2014 10:32:34 +0000 (16:02 +0530)]
staging: rtl8821ae: cam.c: Remove version specific code

The code should be for the current kernel version. Remove
conditional version based code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8821ae: base.c: Remove version specific code
Sachin Kamat [Tue, 27 May 2014 10:32:33 +0000 (16:02 +0530)]
staging: rtl8821ae: base.c: Remove version specific code

The code should be for the current kernel version. Remove
conditional version based code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: comedi: remove in_request_module
Ian Abbott [Tue, 27 May 2014 14:06:17 +0000 (15:06 +0100)]
staging: comedi: remove in_request_module

The `in_request_module` member of `struct comedi_device` is only ever
set to `false`, so remove the code that checks for it being `true` and
remove the member.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unneeded version.h inclusion in ioctl_cfg80211.c
Sachin Kamat [Tue, 27 May 2014 09:58:09 +0000 (15:28 +0530)]
staging: rtl8723au: Remove unneeded version.h inclusion in ioctl_cfg80211.c

version.h inclusion is not needed as detected by versioncheck.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unneeded version.h inclusion in os_intfs.c
Sachin Kamat [Tue, 27 May 2014 09:58:10 +0000 (15:28 +0530)]
staging: rtl8723au: Remove unneeded version.h inclusion in os_intfs.c

version.h inclusion is not needed as detected by versioncheck.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unneeded version.h inclusion in osdep_service.h
Sachin Kamat [Tue, 27 May 2014 09:58:08 +0000 (15:28 +0530)]
staging: rtl8723au: Remove unneeded version.h inclusion in osdep_service.h

version.h inclusion is not needed as detected by versioncheck.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8192ee: Remove unneeded version.h inclusion
Sachin Kamat [Tue, 27 May 2014 09:55:48 +0000 (15:25 +0530)]
staging: rtl8192ee: Remove unneeded version.h inclusion

version.h inclusion is not needed as detected by versioncheck.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8192ee: Fix build error
Sachin Kamat [Tue, 27 May 2014 09:55:47 +0000 (15:25 +0530)]
staging: rtl8192ee: Fix build error

Fixes the followign build error:
drivers/staging/rtl8192ee/btcoexist/halbtc8723b1ant.c:1387:6: error: called object is not a function or function pointer
      ("[BTCoex], Wifi non connected-idle + BT Busy!!\n"));

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8712: return -ENOMEM instead of -1
Vitaly Osipov [Tue, 27 May 2014 12:27:37 +0000 (22:27 +1000)]
staging: rtl8712: return -ENOMEM instead of -1

After the commit 91d435f replaced _malloc with kmalloc, smatch picked up a
couple of new warnings. This fixes the warning:

warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Vitaly Osipov <vitaly.osipov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8712: fix kmalloc parameters
Vitaly Osipov [Tue, 27 May 2014 12:26:12 +0000 (22:26 +1000)]
staging: rtl8712: fix kmalloc parameters

After the commit 91d435f replaced _malloc with kmalloc, smatch picked up a
couple of new warnings. This fixes warnings:

warn: struct type mismatch 'writePTM_parm vs setdig_parm'
warn: struct type mismatch 'writePTM_parm vs setra_parm'

The difference is u8 vs unsigned char.

Signed-off-by: Vitaly Osipov <vitaly.osipov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: comedi: remove check for CONFIG_KMOD
Paul Bolle [Mon, 26 May 2014 19:09:10 +0000 (21:09 +0200)]
staging: comedi: remove check for CONFIG_KMOD

The comedi driver was added in v2.6.29. That's the same release that
removed the Kconfig symbol KMOD. So the code behind a test for its
macro has been hidden since it was in staging. Remove it.

Remove a useless assignment to "dev->in_request_module" too. That
variable seems pointless anyhow, but that's a different issue.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: ctx1e1: remove checks for three macros
Paul Bolle [Mon, 26 May 2014 19:18:01 +0000 (21:18 +0200)]
staging: ctx1e1: remove checks for three macros

When the ctx1e1 driver was added in v2.6.35 it contained checks for
CONFIG_SBE_HDLC_V7, CONFIG_SBE_WAN256T3_HDLC_V7, and
CONFIG_SBE_WAN256T3_NCOMM (and MODULE variants). The related Kconfig
symbols didn't exist then. They still don't exist now. Remove these
checks.

Do some related cleaning up and remove the unused V7() macro too.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: lirc: remove checks for CONFIG_LIRC_SERIAL_NSLU2
Paul Bolle [Mon, 26 May 2014 19:26:57 +0000 (21:26 +0200)]
staging: lirc: remove checks for CONFIG_LIRC_SERIAL_NSLU2

When support for homebrew serial port receivers was added in v2.6.36 its
code contained checks for CONFIG_LIRC_SERIAL_NSLU2. The related Kconfig
symbol didn't exist then. It still doesn't exist now. Remove these checks.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8192u: remove checks for CONFIG_RTL8192_PM
Paul Bolle [Mon, 26 May 2014 19:40:46 +0000 (21:40 +0200)]
staging: rtl8192u: remove checks for CONFIG_RTL8192_PM

When the rtl8192u driver was added in v2.6.33 its code contained checks
for CONFIG_RTL8192_PM. The related Kconfig symbol didn't exist then. It
still doesn't exist now. Remove these checks.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: tidspbridge: check for CONFIG_SND_OMAP_SOC_MCBSP
Paul Bolle [Mon, 26 May 2014 19:47:11 +0000 (21:47 +0200)]
staging: tidspbridge: check for CONFIG_SND_OMAP_SOC_MCBSP

Commit d0f47ff17f29 ("ASoC: OMAP: Build config cleanup for McBSP")
removed the Kconfig symbol OMAP_MCBSP. It left two checks for
CONFIG_OMAP_MCBSP untouched.

Convert these to checks for CONFIG_SND_OMAP_SOC_MCBSP. That must be
correct, since that re-enables calls to functions that are all found in
sound/soc/omap/mcbsp.c. And that file is built only if
CONFIG_SND_OMAP_SOC_MCBSP is defined.

Fixes: d0f47ff17f29 ("ASoC: OMAP: Build config cleanup for McBSP")
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8192u: rename CONFIG_IEEE80211_CRYPT_TKIP
Paul Bolle [Mon, 26 May 2014 20:19:51 +0000 (22:19 +0200)]
staging: rtl8192u: rename CONFIG_IEEE80211_CRYPT_TKIP

The Kconfig symbol IEEE80211_CRYPT_TKIP was renamed to
LIB80211_CRYPT_TKIP in commit 274bfb8dc5ff ("lib80211: absorb crypto
bits from net/ieee80211"). So when rtl8192u was added as a staging
driver in v2.6.33 its checks for CONFIG_IEEE80211_CRYPT_TKIP were
already outdated. Use CONFIG_LIB80211_CRYPT_TKIP instead, as was clearly
intended.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: r8821ae: Fix potential problem with rate control registration
Larry Finger [Mon, 26 May 2014 19:06:06 +0000 (14:06 -0500)]
staging: r8821ae: Fix potential problem with rate control registration

The zero day testing facility reported a problem with duplicate
registration of the rate-control algorithm. Although not yet reported,
this driver needs the same fix.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: r8192ee: Fix build errors when PCI is not available
Larry Finger [Mon, 26 May 2014 19:06:05 +0000 (14:06 -0500)]
staging: r8192ee: Fix build errors when PCI is not available

A build of this driver fails when PCI is not selected. It would also
fail if MAC80211 is not selected. Kconfig is fixed to handle these
conditions, and to select additional necessary components.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: r8192ee: Fix kernel WARN splat associated with rate control
Larry Finger [Mon, 26 May 2014 19:06:04 +0000 (14:06 -0500)]
staging: r8192ee: Fix kernel WARN splat associated with rate control

The 0day kernel testing robot got the kernel warning caused by trying
to register a particular rate-control algorithm more than once. I believe
that the core already protects against a particular driver doing the
registration more than once, but an analysis of the code reveals that
the identical name is used for the rtlwifi drivers in the regular
wireless tree, and the staging drivers r8192ee and r8821ae. The fix
is to rename the algorithm used in r8192ee.

Reported-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove empty file odm_interface.h
navin patidar [Mon, 26 May 2014 16:05:39 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove empty file odm_interface.h

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused enum odm_h2c_cmd.
navin patidar [Mon, 26 May 2014 16:05:38 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused enum odm_h2c_cmd.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function declaration.
navin patidar [Mon, 26 May 2014 16:05:37 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function declaration.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused macros defined in odm_interface.h
navin patidar [Mon, 26 May 2014 16:05:36 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused macros defined in odm_interface.h

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Use ODM_REG_IGI_A_11N and ODM_BIT_IGI_11N in ODM_Write_DIG()
navin patidar [Mon, 26 May 2014 16:05:35 +0000 (21:35 +0530)]
staging: rtl8188eu: Use ODM_REG_IGI_A_11N and ODM_BIT_IGI_11N in ODM_Write_DIG()

ODM_REG(IGI_A, pDM_Odm) and ODM_BIT(IGI, pDM_Odm) macros produce
ODM_REG_IGI_A_11N and ODM_BIT_IGI_11N respectively after preprocessing.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unnecessary debugging message from ODM_Write_DIG()
navin patidar [Mon, 26 May 2014 16:05:34 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unnecessary debugging message from ODM_Write_DIG()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Use ODM_REG_IGI_A_11N and ODM_BIT_IGI_11N in odm_DIGInit()
navin patidar [Mon, 26 May 2014 16:05:33 +0000 (21:35 +0530)]
staging: rtl8188eu: Use ODM_REG_IGI_A_11N and ODM_BIT_IGI_11N in odm_DIGInit()

ODM_REG(IGI_A, pDM_Odm) and ODM_BIT(IGI, pDM_Odm) macros produce
ODM_REG_IGI_A_11N and ODM_BIT_IGI_11N respectively after preprocessing.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Use "ODM_REG_CCK_CCA_11N" in ODM_Write_CCK_CCA_Thres()
navin patidar [Mon, 26 May 2014 16:05:32 +0000 (21:35 +0530)]
staging: rtl8188eu: Use "ODM_REG_CCK_CCA_11N" in ODM_Write_CCK_CCA_Thres()

Use "ODM_REG_CCK_CCA_11N" directly instead of using ODM_REG(CCK_CCA, pDM_Odm)
which produces same after preprocessing.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function declaration.
navin patidar [Mon, 26 May 2014 16:05:31 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function declaration.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function pointer declaration.
navin patidar [Mon, 26 May 2014 16:05:30 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function pointer declaration.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused macros in odm_interface.h
navin patidar [Mon, 26 May 2014 16:05:29 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused macros in odm_interface.h

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused structure "rtl8192cd_priv"
navin patidar [Mon, 26 May 2014 16:05:28 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused structure "rtl8192cd_priv"

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused macros and enum defined in odm_types.h
navin patidar [Mon, 26 May 2014 16:05:27 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused macros and enum defined in odm_types.h

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: remove unused header inclusion from rtw_mp.c
navin patidar [Mon, 26 May 2014 16:05:26 +0000 (21:35 +0530)]
staging: rtl8188eu: remove unused header inclusion from rtw_mp.c

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function rtl8188e_deinit_dm_priv()
navin patidar [Mon, 26 May 2014 16:05:25 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function rtl8188e_deinit_dm_priv()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function pointer ->dm_init
navin patidar [Mon, 26 May 2014 16:05:24 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function pointer ->dm_init

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove function rtw_hal_dm_deinit()
navin patidar [Mon, 26 May 2014 16:05:23 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove function rtw_hal_dm_deinit()

rtw_hal_dm_deinit() calls rtl8188e_deinit_dm_priv() using funtion pointer.
rtl8188e_deinit_dm_priv() has empty defination, so we can remove
rtw_hal_dm_deinit() and later rtl8188e_deinit_dm_priv() also will be
removed.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove function with empty defination dm_CheckStatistics()
navin patidar [Mon, 26 May 2014 16:05:22 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove function with empty defination dm_CheckStatistics()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function odm_Init_RSSIForDM()
navin patidar [Mon, 26 May 2014 16:05:21 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function odm_Init_RSSIForDM()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function ODM_MacStatusQuery()
navin patidar [Mon, 26 May 2014 16:05:20 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function ODM_MacStatusQuery()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function rtl8188eu_ps_func()
navin patidar [Mon, 26 May 2014 16:05:19 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function rtl8188eu_ps_func()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function pointer ->interface_ps_func
navin patidar [Mon, 26 May 2014 16:05:18 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function pointer ->interface_ps_func

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function rtw_hal_intf_ps_func()
navin patidar [Mon, 26 May 2014 16:05:17 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function rtw_hal_intf_ps_func()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8188eu: Remove unused function rtw_interface_ps_func()
navin patidar [Mon, 26 May 2014 16:05:16 +0000 (21:35 +0530)]
staging: rtl8188eu: Remove unused function rtw_interface_ps_func()

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: Fix CARDvCalculateOFDMRParameter static warning
Malcolm Priestley [Mon, 26 May 2014 12:59:08 +0000 (13:59 +0100)]
staging: vt6656: Fix CARDvCalculateOFDMRParameter static warning

Fix  warning: symbol 'CARDvCalculateOFDMRParameter' was not declared. Should it be static?

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: dead code remove control.c/h
Malcolm Priestley [Mon, 26 May 2014 12:59:07 +0000 (13:59 +0100)]
staging: vt6656: dead code remove control.c/h

Replace control.h headers with usbpipe.h

Also add to usbpipe.c its header

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: create vnt_control_in_u8 to replace ControlvReadByte
Malcolm Priestley [Mon, 26 May 2014 12:59:06 +0000 (13:59 +0100)]
staging: vt6656: create vnt_control_in_u8 to replace ControlvReadByte

ControlvReadByte will be removed in next patch

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: remove dead code ControlvMaskByte
Malcolm Priestley [Mon, 26 May 2014 12:59:05 +0000 (13:59 +0100)]
staging: vt6656: remove dead code ControlvMaskByte

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: Create new function to set led state.
Malcolm Priestley [Mon, 26 May 2014 12:59:04 +0000 (13:59 +0100)]
staging: vt6656: Create new function to set led state.

Create vnt_mac_set_led to set state and led.

state has two modes LEDSTS_TMLEN which sets the blink rate
on TX activity and LEDSTS_STS which sets the led.

As result of this patch ControlvMaskByte becomes dead code.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: replace ControlvWriteByte with vnt_control_out_u8
Malcolm Priestley [Mon, 26 May 2014 12:59:03 +0000 (13:59 +0100)]
staging: vt6656: replace ControlvWriteByte with vnt_control_out_u8

add new function in usbpipe.c to replace ControlvWriteByte

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: rename PIPEnsControlIn/CONTROLnsRequestIn with vnt_control_in
Malcolm Priestley [Mon, 26 May 2014 12:59:02 +0000 (13:59 +0100)]
staging: vt6656: rename PIPEnsControlIn/CONTROLnsRequestIn with vnt_control_in

Replace all to CONTROLnsRequestIn with vnt_control_in and remove macro.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: rename PIPEnsControlOut/CONTROLnsRequestOut to vnt_control_out
Malcolm Priestley [Mon, 26 May 2014 12:59:01 +0000 (13:59 +0100)]
staging: vt6656: rename PIPEnsControlOut/CONTROLnsRequestOut to vnt_control_out

Rename all CONTROLnsRequestOut and remove macro from control.h

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: mac.c remove DBG_PRT debug message.
Malcolm Priestley [Mon, 26 May 2014 12:59:00 +0000 (13:59 +0100)]
staging: vt6656: mac.c remove DBG_PRT debug message.

Replace with dev_dbg

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: MACvSetKeyEntry remove camel case.
Malcolm Priestley [Mon, 26 May 2014 12:58:59 +0000 (13:58 +0100)]
staging: vt6656: MACvSetKeyEntry remove camel case.

camel case changes
pDevice -> priv
wKeyCtl -> key_ctl
uEntryIdx -> entry_idx
uKeyIdx -> key_idx
pbyAddr -> addr
wOffset -> offset

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: vt6656: MACvSetKeyEntry change u32 pdwKey to u8 pointer
Malcolm Priestley [Mon, 26 May 2014 12:58:58 +0000 (13:58 +0100)]
staging: vt6656: MACvSetKeyEntry change u32 pdwKey to u8 pointer

Change pdwKey u32 pointer to key u8 pointer.

Callers are already u8 remove u32 pointer cast.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: silicom/bypasslib/bp_ioctl.h: Fix erroneous global variable definitions
Joel Porquet [Mon, 26 May 2014 16:07:38 +0000 (18:07 +0200)]
staging: silicom/bypasslib/bp_ioctl.h: Fix erroneous global variable definitions

Originally, this header was defining two new typedefs, CMND_TYPE and
CMND_TYPE_SD, following this type of declaration:

typedef enum {
...
} CMND_TYPE;

A previous commit (785086556a573f07747b3633732a9dbd7e45728f) tried to
fix warnings that were pointed out by checkpatch.pl, concerning not
adding new typedefs. But this commit only removed the 'typedef' keyword,
thus transforming both the typedefs into two the definition of global
variables. For example:

enum {
...
} CMND_TYPE;

As noticed by the Sparse tool, this patch removes those erroneous global
variable definitions, and just leaves anonymous enum type definitions:

enum {
...
};

Signed-off-by: Joel Porquet <joel@porquet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: dgap: move tty_port_init() for serial_ports.
Daeseok Youn [Mon, 26 May 2014 10:24:47 +0000 (19:24 +0900)]
staging: dgap: move tty_port_init() for serial_ports.

If printer_ports which is allocated after serial_ports is failed
to allocate, tty_port_init for serial_ports doesn't need anymore.
So move this after allocating memory for printer_ports.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: dgap: remove unneeded kfree() in dgap_tty_register_ports()
Daeseok Youn [Mon, 26 May 2014 10:24:17 +0000 (19:24 +0900)]
staging: dgap: remove unneeded kfree() in dgap_tty_register_ports()

When it failed to allocate for printer_ports, serial_ports
can be freed in dgap_tty_uninit().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: dgap: remove unneeded kfree() for ttys in tty_driver
Daeseok Youn [Mon, 26 May 2014 10:23:01 +0000 (19:23 +0900)]
staging: dgap: remove unneeded kfree() for ttys in tty_driver

In destruct_tty_driver() from put_tty_driver() will free the
ttys in tty_driver.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging/lustre/llite: Remove unnecessary check for NULL before iput()
Tobias Klauser [Mon, 26 May 2014 09:08:18 +0000 (11:08 +0200)]
staging/lustre/llite: Remove unnecessary check for NULL before iput()

iput() already checks for the inode being NULL, thus it's unnecessary to
check before calling.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agodrivers/staging: Remove useless return variables
Peter Senna Tschudin [Mon, 26 May 2014 14:08:50 +0000 (16:08 +0200)]
drivers/staging: Remove useless return variables

This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.

Verified by compilation only.

The coccinelle script that find and fixes this issue is:
// <smpl>
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
    when strict
return
- ret
+ C
;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agoStaging: Silicom: bpctl_mod.c & bypass.c: Adding blank lines
Chaitanya Hazarey [Mon, 26 May 2014 04:58:43 +0000 (21:58 -0700)]
Staging: Silicom: bpctl_mod.c & bypass.c: Adding blank lines

Added a blank line after declarations in many places to fix
the following warning issued by checkpatch.pl:

WARNING: Missing a blank line after declarations

Signed-off-by: Chaitanya Hazarey <c@24.io>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: _InitQueueReservedPage(): Remove pointless brackets
Jes Sorensen [Sun, 25 May 2014 20:43:48 +0000 (22:43 +0200)]
staging: rtl8723au: _InitQueueReservedPage(): Remove pointless brackets

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused struct btdata_info
Jes Sorensen [Sun, 25 May 2014 20:43:47 +0000 (22:43 +0200)]
staging: rtl8723au: Remove unused struct btdata_info

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BTDM_FwC2hBtInfo8723A() to rtl8723a_fw_c2h_BT_info()
Jes Sorensen [Sun, 25 May 2014 20:43:46 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BTDM_FwC2hBtInfo8723A() to rtl8723a_fw_c2h_BT_info()

In addition get rid of some pointless code obfuscating wrappers

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8723a_bt-coexist.c: Remove unnecessary #ifdef CONFIG_8723AU_BT...
Jes Sorensen [Sun, 25 May 2014 20:43:45 +0000 (22:43 +0200)]
staging: rtl8723au: rtl8723a_bt-coexist.c: Remove unnecessary #ifdef CONFIG_8723AU_BT_COEXIST

This file is only compiled if CONFIG_8723AU_BT_COEXIST=y

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename HALBT_InitBTVars8723A() rtl8723a_BT_init_hal_vars()
Jes Sorensen [Sun, 25 May 2014 20:43:44 +0000 (22:43 +0200)]
staging: rtl8723au: Rename HALBT_InitBTVars8723A() rtl8723a_BT_init_hal_vars()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Make rtl8723a_set_BTCoex_AP_mode_FwRsvdPkt_cmd() a no-op when...
Jes Sorensen [Sun, 25 May 2014 20:43:43 +0000 (22:43 +0200)]
staging: rtl8723au: Make rtl8723a_set_BTCoex_AP_mode_FwRsvdPkt_cmd() a no-op when no co-exist enabled

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BT_WifiAssociateNotify() rtl8723a_BT_wifiassociate_notify()
Jes Sorensen [Sun, 25 May 2014 20:43:42 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BT_WifiAssociateNotify() rtl8723a_BT_wifiassociate_notify()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtl8732au_hal_init.c: Use rtl8723au_BT_coexist() to pick firmware...
Jes Sorensen [Sun, 25 May 2014 20:43:41 +0000 (22:43 +0200)]
staging: rtl8723au: rtl8732au_hal_init.c: Use rtl8723au_BT_coexist() to pick firmware image

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: usb_halinit.c: Remove no-op HAL_INIT_PROFILE_TAG()
Jes Sorensen [Sun, 25 May 2014 20:43:40 +0000 (22:43 +0200)]
staging: rtl8723au: usb_halinit.c: Remove no-op HAL_INIT_PROFILE_TAG()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename HALBT_InitHwConfig() rtl8723a_BT_init_hwconfig()
Jes Sorensen [Sun, 25 May 2014 20:43:39 +0000 (22:43 +0200)]
staging: rtl8723au: Rename HALBT_InitHwConfig() rtl8723a_BT_init_hwconfig()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Move rtl8723a_dual_antenna_detection() to rtl8723a_bt-coexist.c
Jes Sorensen [Sun, 25 May 2014 20:43:38 +0000 (22:43 +0200)]
staging: rtl8723au: Move rtl8723a_dual_antenna_detection() to rtl8723a_bt-coexist.c

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: odm.c: Rename BTDM_DisableEDCATurbo() to rtl8723a_BT_disable_EDCA...
Jes Sorensen [Sun, 25 May 2014 20:43:37 +0000 (22:43 +0200)]
staging: rtl8723au: odm.c: Rename BTDM_DisableEDCATurbo() to rtl8723a_BT_disable_EDCA_turbo()

Make it return bool since it only returns true/false, and get rid of

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_mlme_ext.c: Sanitize calls to alloc_mgtxmitframe23a()
Jes Sorensen [Sun, 25 May 2014 20:43:36 +0000 (22:43 +0200)]
staging: rtl8723au: rtw_mlme_ext.c: Sanitize calls to alloc_mgtxmitframe23a()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_mlme_ext.c: Remove CONFIG_8723AU_BT_COEXIST #ifdefs
Jes Sorensen [Sun, 25 May 2014 20:43:35 +0000 (22:43 +0200)]
staging: rtl8723au: rtw_mlme_ext.c: Remove CONFIG_8723AU_BT_COEXIST #ifdefs

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_pwrctrl.c: Eliminate CONFIG_8723AU_BT_COEXIST #ifdefs
Jes Sorensen [Sun, 25 May 2014 20:43:34 +0000 (22:43 +0200)]
staging: rtl8723au: rtw_pwrctrl.c: Eliminate CONFIG_8723AU_BT_COEXIST #ifdefs

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_pwrctrl.c: Remove an unnecessary COEXIST #ifdef
Jes Sorensen [Sun, 25 May 2014 20:43:33 +0000 (22:43 +0200)]
staging: rtl8723au: rtw_pwrctrl.c: Remove an unnecessary COEXIST #ifdef

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_cmd.c: Remove last #ifdef CONFIG_8723AU_BT_COEXIST usage
Jes Sorensen [Sun, 25 May 2014 20:43:32 +0000 (22:43 +0200)]
staging: rtl8723au: rtw_cmd.c: Remove last #ifdef CONFIG_8723AU_BT_COEXIST usage

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BT_LpsLeave() rtl8723a_BT_lps_leave()
Jes Sorensen [Sun, 25 May 2014 20:43:31 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BT_LpsLeave() rtl8723a_BT_lps_leave()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BTDM_ForDhcp() to rtl8723a_BT_specialpacket_notify()
Jes Sorensen [Sun, 25 May 2014 20:43:30 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BTDM_ForDhcp() to rtl8723a_BT_specialpacket_notify()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BT_WifiMediaStatusNotify() rtl8723a_BT_mediastatus_notify()
Jes Sorensen [Sun, 25 May 2014 20:43:29 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BT_WifiMediaStatusNotify() rtl8723a_BT_mediastatus_notify()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BT_WifiScanNotify() rtl8723a_BT_wifiscan_notify()
Jes Sorensen [Sun, 25 May 2014 20:43:28 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BT_WifiScanNotify() rtl8723a_BT_wifiscan_notify()

Providing a dummy wrapper also allows removing some more
CONFIG_8723AU_BT_COEXIST clutter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Rename BTDM_Coexist() to rtl8723a_BT_do_coexist()
Jes Sorensen [Sun, 25 May 2014 20:43:27 +0000 (22:43 +0200)]
staging: rtl8723au: Rename BTDM_Coexist() to rtl8723a_BT_do_coexist()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove some CONFIG_8723AU_BT_COEXIST clutter
Jes Sorensen [Sun, 25 May 2014 20:43:26 +0000 (22:43 +0200)]
staging: rtl8723au: Remove some CONFIG_8723AU_BT_COEXIST clutter

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Introduce rtl8723a_BT_coexist() - and use it!
Jes Sorensen [Sun, 25 May 2014 20:43:25 +0000 (22:43 +0200)]
staging: rtl8723au: Introduce rtl8723a_BT_coexist() - and use it!

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Convert BT_IsBtDisabled() into rtl8723a_BT_enabled()
Jes Sorensen [Sun, 25 May 2014 20:43:24 +0000 (22:43 +0200)]
staging: rtl8723au: Convert BT_IsBtDisabled() into rtl8723a_BT_enabled()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Create rtl8723au_bt_intf.h
Jes Sorensen [Sun, 25 May 2014 20:43:23 +0000 (22:43 +0200)]
staging: rtl8723au: Create rtl8723au_bt_intf.h

Use this header for declaring functions that are currently #ifdef'ed
out in the general code.

Start by moving BTDM_1Ant8723A() there and renaming it appropriately.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: PS_RDY_CHECK() return bools in 'bool'
Jes Sorensen [Sun, 25 May 2014 20:43:22 +0000 (22:43 +0200)]
staging: rtl8723au: PS_RDY_CHECK() return bools in 'bool'

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: _rtw_pwr_wakeup23a(): Do not mix _FAIL/false as return value
Jes Sorensen [Sun, 25 May 2014 20:43:21 +0000 (22:43 +0200)]
staging: rtl8723au: _rtw_pwr_wakeup23a(): Do not mix _FAIL/false as return value

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: bInternalAutoSuspend is always false
Jes Sorensen [Sun, 25 May 2014 20:43:20 +0000 (22:43 +0200)]
staging: rtl8723au: bInternalAutoSuspend is always false

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove unused prototype rtw_cfg80211_issue_p2p_provision_request23a()
Jes Sorensen [Sun, 25 May 2014 20:43:19 +0000 (22:43 +0200)]
staging: rtl8723au: Remove unused prototype rtw_cfg80211_issue_p2p_provision_request23a()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: rtw_wdev_alloc(): Don't register wiphy before kmalloc() completed
Jes Sorensen [Sun, 25 May 2014 20:43:18 +0000 (22:43 +0200)]
staging: rtl8723au: rtw_wdev_alloc(): Don't register wiphy before kmalloc() completed

There is no point starting to register the wiphy and then having to
unregister it again if the followon kmalloc() fails.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Remove some pointless cfg80211_* wrapper macros
Jes Sorensen [Sun, 25 May 2014 20:43:17 +0000 (22:43 +0200)]
staging: rtl8723au: Remove some pointless cfg80211_* wrapper macros

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: struct rtw_wdev_priv: Remove some never 'true' variables
Jes Sorensen [Sun, 25 May 2014 20:43:16 +0000 (22:43 +0200)]
staging: rtl8723au: struct rtw_wdev_priv: Remove some never 'true' variables

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Get rid of unused struct rtw_wdev_invit_info
Jes Sorensen [Sun, 25 May 2014 20:43:15 +0000 (22:43 +0200)]
staging: rtl8723au: Get rid of unused struct rtw_wdev_invit_info

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: _cfg80211_rtw_mgmt_tx() clean up checking function return values
Jes Sorensen [Sun, 25 May 2014 20:43:14 +0000 (22:43 +0200)]
staging: rtl8723au: _cfg80211_rtw_mgmt_tx() clean up checking function return values

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agostaging: rtl8723au: Delete unused rtw_cfg80211_set_mgnt_wpsp2pie()
Jes Sorensen [Sun, 25 May 2014 20:43:13 +0000 (22:43 +0200)]
staging: rtl8723au: Delete unused rtw_cfg80211_set_mgnt_wpsp2pie()

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>