]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: never pass NULL params to ieee80211_if_add()
authorJohannes Berg <johannes.berg@intel.com>
Sat, 15 Dec 2018 09:03:11 +0000 (11:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Dec 2018 12:17:26 +0000 (13:17 +0100)
commitd937850cc201027cd16d16808931f492b186f313
tree8bc403094cd834226108304df95d4c8746fe565d
parent9334c7981fd3def2666726051a823fdb469a58ca
mac80211: never pass NULL params to ieee80211_if_add()

This isn't really a problem now, but it means that the function
has a few NULL checks that are only relevant when coming from
the initial interface added in mac80211, and that's confusing.
Just pass non-NULL (but equivalently empty) in that case and
remove all the NULL checks.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c
net/mac80211/main.c