From: Luis R. Rodriguez Date: Fri, 31 Jul 2009 00:38:06 +0000 (-0700) Subject: cfg80211: use goto out on country IE reg hint failure X-Git-Tag: v2.6.32-rc1~703^2~459^2~56 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9828b0170eef541c3fa583caa0134dadbb1d3ea6;p=~shefty%2Frdma-dev.git cfg80211: use goto out on country IE reg hint failure This has no functional changes. Acked-by: Johannes Berg Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/net/wireless/reg.c b/net/wireless/reg.c index fb40428a594..2d1d183ae6f 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -1774,10 +1774,8 @@ void regulatory_hint_11d(struct wiphy *wiphy, mutex_lock(&cfg80211_mutex); - if (unlikely(!last_request)) { - mutex_unlock(&cfg80211_mutex); - return; - } + if (unlikely(!last_request)) + goto out; /* IE len must be evenly divisible by 2 */ if (country_ie_len & 0x01)