OSDN Git Service

staging: rtl8188eu: Remove unneeded cast
authorChristopher Diaz Riveros <chrisadr@gentoo.org>
Tue, 20 Feb 2018 16:37:22 +0000 (11:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:01:18 +0000 (15:01 +0100)
commitf23ccf8630b7917d8fd4442d842d2ee2f62e36c2
tree98dbeb1e3901a3960aca950c02ef1a93c3eaf01c
parent2bd27b932ac23a423a72d17dfeb247b131521e22
staging: rtl8188eu: Remove unneeded cast

Fix Coccinelle alert:

drivers/staging//rtl8188eu/os_dep/usb_intf.c:336:13-27: WARNING: casting value returned by memory allocation function to (struct adapter *) is useless.

This issue was detected by using the Coccinelle software.

Signed-off-by: Christopher Diaz Riveros <chrisadr@gentoo.org>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c