drivers/net/wireless/ipw2x00/libipw_module.c: remove unnecessary null test before...
authorFabian Frederick <fabf@skynet.be>
Sat, 28 Jun 2014 12:18:52 +0000 (14:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Jul 2014 18:26:26 +0000 (14:26 -0400)
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2x00/libipw_module.c

index 3adb24021a282703a0966e79a61fa5f22af128fb..5f31b72a492181657f784408a3d33a11b418f221 100644 (file)
@@ -100,8 +100,7 @@ static inline void libipw_networks_free(struct libipw_device *ieee)
        int 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]);
        }
 }