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)
commitdd665d23c1e94ad81d8720e90666030c5714a158
tree8bc403094cd834226108304df95d4c8746fe565d
parent8020919a9b99d6c990dc6a50e8215e291fbbe5a6
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