]> 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)
commitaed42e4aa083b659db5423cf556e83ce55f4c3db
treebc07eec4c9ba58db59e6de2e33aa7d87246e8472
parent4f3f18e5f0115f4a54d22d61e6a8353e145b8794
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