]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: remove redundant nul check on pointer dev
authorColin Ian King <colin.king@canonical.com>
Mon, 4 Feb 2019 15:18:43 +0000 (15:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Feb 2019 12:33:54 +0000 (13:33 +0100)
commit3347ab2f02e5eb33eb2d3838f5fcaef45f462327
treed679cff3c7639c0be730ef605cd2e92bb8afb7f5
parenta24062074da39d70b0ac205b34aac4b37a8f4856
staging: rtl8192u: remove redundant nul check on pointer dev

There is a null check on pointer dev which implies it may be null, however
dev can never be null as it is set in rtl8192_usb_probe via the call
to usb_set_intfdata.

Detected by CoverityScan, CID#143078 ("Dereference after null check")

Fixes: 33d35d972f59 ("Staging: Added Realtek rtl8192u driver to staging")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c