Commit 0b06b2ae authored by Harvey Harrison's avatar Harvey Harrison Committed by John W. Linville

mac80211: fix sparse integer as NULL pointer warning

drivers/net/wireless/mac80211_hwsim.c:503:20: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 03121104
...@@ -500,7 +500,7 @@ failed_hw: ...@@ -500,7 +500,7 @@ failed_hw:
device_unregister(data->dev); device_unregister(data->dev);
failed_drvdata: failed_drvdata:
ieee80211_free_hw(hw); ieee80211_free_hw(hw);
hwsim_radios[i] = 0; hwsim_radios[i] = NULL;
failed: failed:
mac80211_hwsim_free(); mac80211_hwsim_free();
return err; return err;
......
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