From e1a35432cde3cf805194ab685d294fd6ff9a0d87 Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Wed, 28 May 2014 17:36:27 +0530 Subject: [PATCH] staging: rtl8723au: Remove redundant casting in rtw_wlan_util.c Casting value returned by k[cmz]alloc is useless. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723au/core/rtw_wlan_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index 256385c..579a4a8 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -919,8 +919,7 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter, return true; } - bssid = (struct wlan_bssid_ex *)kzalloc(sizeof(struct wlan_bssid_ex), - GFP_ATOMIC); + bssid = kzalloc(sizeof(struct wlan_bssid_ex), GFP_ATOMIC); if (!bssid) return _FAIL; -- 2.7.4