cfg80211: make rdev assignment clearer in nl80211_testmode_dump()
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 7 Feb 2017 20:13:56 +0000 (22:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 8 Feb 2017 09:05:44 +0000 (10:05 +0100)
commita4956dca0764569640374ae1afb8be54a23201b8
tree0f4b0423b09a53d0dfe9117785634e5f98b5b09c
parentb2347a322d1f6f93f1a39fe17ed08628fc959351
cfg80211: make rdev assignment clearer in nl80211_testmode_dump()

Avoid assigning rdev to NULL when we already have it and getting it
again from the wiphy index, by moving this code to relevant if block.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c