diff options
author | Christopher Diaz Riveros <chrisadr@gentoo.org> | 2018-02-20 11:37:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-22 15:01:18 +0100 |
commit | f23ccf8630b7917d8fd4442d842d2ee2f62e36c2 (patch) | |
tree | 98dbeb1e3901a3960aca950c02ef1a93c3eaf01c /drivers | |
parent | 2bd27b932ac23a423a72d17dfeb247b131521e22 (diff) | |
download | lwn-f23ccf8630b7917d8fd4442d842d2ee2f62e36c2.tar.gz lwn-f23ccf8630b7917d8fd4442d842d2ee2f62e36c2.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 32c7225a831e..127ecf896fc9 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -333,7 +333,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, struct net_device *pmondev; int status = _FAIL; - padapter = (struct adapter *)vzalloc(sizeof(*padapter)); + padapter = vzalloc(sizeof(*padapter)); if (padapter == NULL) goto exit; padapter->dvobj = dvobj; |