]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ffddb6f972a4b6c1260ebe53a64fab42cae4d75
treebc07eec4c9ba58db59e6de2e33aa7d87246e8472
parentf86d534dbed3a3d5114c29b42eeb5885b36b3e48
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