From: Ebru Akagunduz Date: Mon, 3 Mar 2014 23:54:15 +0000 (+0200) Subject: Staging:rtl8188eu: fix kfree(NULL) is safe this check is probably not required in... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fb081577fa86467b93563dca0e0d7b043cf65a2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging:rtl8188eu: fix kfree(NULL) is safe this check is probably not required in rtw_ap.c Fix checkpatch.pl issues with kfree(NULL) is safe this check is probably not required in rtw_ap.c Signed-off-by: Ebru Akagunduz Acked-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c index 0f1c1e5d25dd..ff74d0d7efa3 100644 --- a/drivers/staging/rtl8188eu/core/rtw_ap.c +++ b/drivers/staging/rtl8188eu/core/rtw_ap.c @@ -1339,8 +1339,7 @@ static void update_bcn_wps_ie(struct adapter *padapter) pnetwork->IELength = wps_offset + (wps_ielen+2) + remainder_ielen; } - if (pbackup_remainder_ie) - kfree(pbackup_remainder_ie); + kfree(pbackup_remainder_ie); } static void update_bcn_p2p_ie(struct adapter *padapter)