Skip to content

Commit

Permalink
mac80211: fix sparse integer as NULL pointer warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harvey Harrison authored and John W. Linville committed Jul 29, 2008
1 parent 0312110 commit 0b06b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static int __init init_mac80211_hwsim(void)
device_unregister(data->dev);
failed_drvdata:
ieee80211_free_hw(hw);
hwsim_radios[i] = 0;
hwsim_radios[i] = NULL;
failed:
mac80211_hwsim_free();
return err;
Expand Down

0 comments on commit 0b06b2a

Please sign in to comment.