提交 0b06b2ae 编写于 作者: H Harvey Harrison 提交者: 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: NHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 03121104
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册