From 8b6c7a347d5655efcbea905a6d02e9f670cf365a Mon Sep 17 00:00:00 2001 From: Christopher Diaz Riveros Date: Tue, 20 Feb 2018 11:33:54 -0500 Subject: 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: Christopher Diaz Riveros Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/rtl8723bs') diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c index 943324877707..99c407ba0874 100644 --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c @@ -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; } -- cgit v1.2.3