staging: rtl8723bs: remove unused code blocks completed?
Hi,
I'm trying to search other unused code blocks:
grep -r '^\(#ifdef \|#if defined(\|#ifndef \)CONFIG_' drivers/staging/rtl8723bs/
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:#if defined(CONFIG_PM) drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:#if defined(CONFIG_PM) drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:#if defined(CONFIG_WEXT_PRIV) drivers/staging/rtl8723bs/include/drv_conf.h:#ifndef CONFIG_RTW_HIQ_FILTER drivers/staging/rtl8723bs/include/autoconf.h:#ifndef CONFIG_WIRELESS_EXT
all blocks left are checked by existing defines.
Could we apply this?
thank you,
fabio
drivers/staging/rtl8723bs/TODO +0 -1
@@ -1,5 +1,4 @@ TODO: -- find and remove code blocks guarded by never set CONFIG_FOO defines - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist. - find and remove any code for other chips that is left over
Greg KH
maintainerQuoted 6 lines · Fabio Aiuto
Hi,
I'm trying to search other unused code blocks:
grep -r '^\(#ifdef \|#if defined(\|#ifndef \)CONFIG_'
drivers/staging/rtl8723bs/
Quoted 8 lines
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:#if
defined(CONFIG_PM)drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:#ifdefined(CONFIG_PM)drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:#ifdefined(CONFIG_WEXT_PRIV)drivers/staging/rtl8723bs/include/drv_conf.h:#ifndefCONFIG_RTW_HIQ_FILTERdrivers/staging/rtl8723bs/include/autoconf.h:#ifndefCONFIG_WIRELESS_EXTall blocks left are checked by existing defines.
Could we apply this?
Sure, looks good, submit this as a real patch with this information in the changelog and I"ll be glad to take it.
thanks,
greg k-h
PATCH 1/1 staging: rtl8723bs: remove unused code blocks completed
Remove related item in TODO list
-------------------------------------------------------
searched for other unused code blocks:
grep -r '^\(#ifdef \|#if defined(\|#ifndef \)CONFIG_' \drivers/staging/rtl8723bs/
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:#if defined(CONFIG_PM) drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:#if defined(CONFIG_PM) drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:#if defined(CONFIG_WEXT_PRIV) drivers/staging/rtl8723bs/include/drv_conf.h:#ifndef CONFIG_RTW_HIQ_FILTER drivers/staging/rtl8723bs/include/autoconf.h:#ifndef CONFIG_WIRELESS_EXT
all blocks left are checked by existing defines.
--- drivers/staging/rtl8723bs/TODO | 1 - 1 file changed, 1 deletion(-)
drivers/staging/rtl8723bs/TODO +0 -1
@@ -1,5 +1,4 @@ TODO: -- find and remove code blocks guarded by never set CONFIG_FOO defines - find and remove remaining code valid only for 5 GHz. Most of the obvious ones have been removed, but things like channel > 14 still exist. - find and remove any code for other chips that is left over
Signature · 1 line
2.20.1