cfg80211: combine wdev/netdev unregister code
authorJohannes Berg <johannes.berg@intel.com>
Mon, 1 Oct 2018 12:09:17 +0000 (14:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:58:51 +0000 (09:58 +0200)
commit85dd3da43dd59b9220d9cba4f933a3dc0ea6faa5
tree94348e0ab78f8ad10411d226d29b64366d2b3e6b
parent49f9cf0e1bf518c006425b59e3b705f6276a8b7c
cfg80211: combine wdev/netdev unregister code

We currently have two places that do similar things, depending
on whether it's a wdev with or without netdev.

Combine the code to avoid having to duplicate all new additions.

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