mac80211: allow passing NULL to ieee80211_vif_to_wdev()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 10 Jun 2015 17:18:55 +0000 (20:18 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:38:09 +0000 (15:38 +0200)
commit6513e98e05ccb8eca77adaf93beae44aa7bf4a45
treebc07eec4c9ba58db59e6de2e33aa7d87246e8472
parente996ec2a4ddb53164262990d33304c429709f687
mac80211: allow passing NULL to ieee80211_vif_to_wdev()

Simply return NULL in this case, instead of crashing. This can
simplify callers that would otherwise have to check for this
explicitly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c