staging: rtl8188eu: Remove unneeded cast
Subsystems (2)
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 <[email protected]>
--- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8188eu/os_dep/usb_intf.c +1 -1
@@ -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;
Signature · 1 line
2.16.2
Larry Finger
Acked-byQuoted 7 lines · Christopher Diaz Riveros
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 <[email protected]>
Acked-by Larry Finger <[email protected]>
Quoted 18 lines
--- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/rtl8188eu/os_dep/usb_intf.c +1
-1@@ -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;