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

staging: rtl8723bs: Remove unneeded cast

Fix Coccinelle alert:

drivers/staging//rtl8723bs/os_dep/sdio_intf.c:340: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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5841b903
......@@ -337,7 +337,7 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct
struct adapter *padapter = NULL;
PSDIO_DATA psdio = &dvobj->intf_data;
padapter = (struct adapter *)vzalloc(sizeof(*padapter));
padapter = vzalloc(sizeof(*padapter));
if (padapter == NULL) {
goto exit;
}
......
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