summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorEbru Akagunduz <ebru.akagunduz@gmail.com>2014-03-04 01:54:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-07 14:42:24 -0800
commit6fb081577fa86467b93563dca0e0d7b043cf65a2 (patch)
treed74c96702dc0f7b447ac17e863c5710f58acd23a /drivers/staging/rtl8188eu
parent73e183426f8f3c2a3e030bf63c2112f7a080ded8 (diff)
downloadblackbird-obmc-linux-6fb081577fa86467b93563dca0e0d7b043cf65a2.tar.gz
blackbird-obmc-linux-6fb081577fa86467b93563dca0e0d7b043cf65a2.zip
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 <ebru.akagunduz@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_ap.c3
1 files changed, 1 insertions, 2 deletions
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)
OpenPOWER on IntegriCloud