OSDN Git Service

staging: rtl8188eu: remove unused field bRxRSSIDisplay in struct adapter
authorLuca Ceresoli <luca@lucaceresoli.net>
Thu, 29 Dec 2016 23:01:04 +0000 (00:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 15:53:29 +0000 (16:53 +0100)
commit9fe7b29c6cc1e4adbc2b3d6b8452ff5278ee4fba
tree810b4992bc033bbed4db4ebb8afda425ac7a07c0
parent7d2af82cc5f571341fc835eca3f958ec559bbef8
staging: rtl8188eu: remove unused field bRxRSSIDisplay in struct adapter

Since commit da25a8ec6b2d ("staging: rtl8188eu: remove unused
debugging functions") this field is never set set to any nonzero
value, so it is actually always zero.

It is also used only once, as a boolean inside an if(). This means the
code under that if() is dead code, so remove it as well.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ivan Safonov <insafonov@gmail.com>
Cc: devel@driverdev.osuosl.org
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c