mac80211: fix sparse integer as NULL pointer warning
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 24 Jul 2008 01:36:38 +0000 (18:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:55:07 +0000 (16:55 -0400)
drivers/net/wireless/mac80211_hwsim.c:503:20: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mac80211_hwsim.c

index 5816230d58f82505a18b5bd6c93d1481e7cc8c55..248d31a7aa33ff8c7990c6a4b6231729be589c8b 100644 (file)
@@ -500,7 +500,7 @@ failed_hw:
        device_unregister(data->dev);
 failed_drvdata:
        ieee80211_free_hw(hw);
-       hwsim_radios[i] = 0;
+       hwsim_radios[i] = NULL;
 failed:
        mac80211_hwsim_free();
        return err;