staging: r8118eu: remove useless parts of judgements from os_dep/ioctl_linux.
authorxu xin <xu.xin16@zte.com.cn>
Mon, 30 Aug 2021 01:28:11 +0000 (18:28 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:43 +0000 (08:49 +0200)
commit9675a1b4adea26b7ead7338408fcc5c61e85f3f2
tree0cb91e1509c12df768254202669532e27f3b1849
parent75cf9f9dc3972814a8ccf7c1f0c4029a772322d3
staging: r8118eu: remove useless parts of judgements from os_dep/ioctl_linux.

Remove the check of the pointer 'pregpriv' that is impossible to be
NULL. There is no need to check if pregpriv is NULL.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Thanks-to: Pavel Skripkin <paskripkin@gmail.com>
Link: https://lore.kernel.org/r/20210830012811.3384-1-xu.xin16@zte.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c