Commit f23ccf86 authored by Christopher Diaz Riveros's avatar Christopher Diaz Riveros Committed by Greg Kroah-Hartman

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: default avatarChristopher Diaz Riveros <chrisadr@gentoo.org>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2bd27b93
...@@ -333,7 +333,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, ...@@ -333,7 +333,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
struct net_device *pmondev; struct net_device *pmondev;
int status = _FAIL; int status = _FAIL;
padapter = (struct adapter *)vzalloc(sizeof(*padapter)); padapter = vzalloc(sizeof(*padapter));
if (padapter == NULL) if (padapter == NULL)
goto exit; goto exit;
padapter->dvobj = dvobj; padapter->dvobj = dvobj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment