Commit f528f664 authored by Fabian Frederick's avatar Fabian Frederick Committed by John W. Linville

drivers/net/wireless/ipw2x00/libipw_module.c: remove unnecessary null test before kfree

Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Cc: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 50591c60
...@@ -100,7 +100,6 @@ static inline void libipw_networks_free(struct libipw_device *ieee) ...@@ -100,7 +100,6 @@ static inline void libipw_networks_free(struct libipw_device *ieee)
int i; int i;
for (i = 0; i < MAX_NETWORK_COUNT; i++) { for (i = 0; i < MAX_NETWORK_COUNT; i++) {
if (ieee->networks[i]->ibss_dfs)
kfree(ieee->networks[i]->ibss_dfs); kfree(ieee->networks[i]->ibss_dfs);
kfree(ieee->networks[i]); kfree(ieee->networks[i]);
} }
......
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