OSDN Git Service

Staging: rtl8723bs: remove some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Feb 2019 18:24:29 +0000 (21:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Feb 2019 12:33:54 +0000 (13:33 +0100)
commitdc96476e0ad209038f2af30f4f663cb5f41a928f
treeb895aa2f8ad9edc695ce76099d2452c5db2dc89c
parent2a95c4e04acf91d8d65dc9535fcb672734a0736d
Staging: rtl8723bs: remove some dead code

"psecnetwork" is the address of &psecuritypriv->sec_bss.  Since
->sec_bss isn't the first member of the struct that means that
"psecnetwork" can't be NULL.

We can just remove this dead code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c