staging: r8188eu: remove the global DriverState
authorMartin Kaiser <martin@kaiser.cx>
Sun, 6 Feb 2022 16:18:04 +0000 (17:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 09:29:02 +0000 (10:29 +0100)
commitde424be4e976a43d89c04f2fbc6530ea3bf28df8
treed173e191cfecffda2e07384b9f079a23747a9903
parent3c4b62e3819c552c03a269d18126f0603bc62e85
staging: r8188eu: remove the global DriverState

DriverState in struct adapter is never set. It remains 0 (DRIVER_NORMAL)
all the time, DriverState != DRIVER_DISAPPEAR is always true.

Both DriverState and the check can be removed. enum driver_state contains
the possible values of DriverState. This enum can be removed as well.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220206161809.423031-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/os_dep/usb_intf.c