nl80211: clarify nl80211_set_reg() success path
authorJohannes Berg <johannes.berg@intel.com>
Thu, 9 Jun 2016 08:40:09 +0000 (10:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 9 Jun 2016 08:41:19 +0000 (10:41 +0200)
commit0662799023de4be686263b0a4f4b7910999172b9
tree95e6bef1e01e69de5b4e5fc579d6788a9b57f727
parent1dad640b9ef320e8de92c418bcc08448d67590a4
nl80211: clarify nl80211_set_reg() success path

Setting rd to NULL to avoid freeing it, just to be able to return
from the function in a single place, doesn't make much sense.

Return the set_regdom() return value directly.

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