staging: rtl8723bs: remove redundant null check on pregpriv
authorWen Yang <wen.yang99@zte.com.cn>
Sat, 24 Nov 2018 11:22:19 +0000 (11:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2018 19:59:05 +0000 (20:59 +0100)
commit2a68ead3de431924d22997f121ae30aa0f99f356
tree8711c940a7d16de8f029629f3c562c36a1ac422b
parent3253374714cecd5df3d3c93b5523352b784b3551
staging: rtl8723bs: remove redundant null check on pregpriv

The null check on &padapter->registrypriv is redundant since registrypriv
is a struct inside padapter and can never be null, so the check is always
true.  we may remove it.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
CC: devel@driverdev.osuosl.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c