From patchwork Thu Jul 30 17:22:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Rodriguez X-Patchwork-Id: 38364 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6UHMtxg022456 for ; Thu, 30 Jul 2009 17:22:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751947AbZG3RWq (ORCPT ); Thu, 30 Jul 2009 13:22:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751746AbZG3RWq (ORCPT ); Thu, 30 Jul 2009 13:22:46 -0400 Received: from mail.atheros.com ([12.36.123.2]:28333 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbZG3RWp (ORCPT ); Thu, 30 Jul 2009 13:22:45 -0400 Received: from mail.atheros.com ([10.10.20.105]) by sidewinder.atheros.com for ; Thu, 30 Jul 2009 10:22:46 -0700 Received: from smtp.atheros.com (10.10.18.125) by SC1EXHC-01.global.atheros.com (10.10.20.111) with Microsoft SMTP Server (TLS) id 8.0.751.0; Thu, 30 Jul 2009 10:22:38 -0700 Received: by smtp.atheros.com (sSMTP sendmail emulation); Thu, 30 Jul 2009 10:22:45 -0700 From: "Luis R. Rodriguez" To: , CC: , "Luis R. Rodriguez" Subject: [PATCH v2 1/3] cfg80211: use goto out on 11d reg hint failure Date: Thu, 30 Jul 2009 10:22:40 -0700 Message-ID: <1248974562-8315-2-git-send-email-lrodriguez@atheros.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1248974562-8315-1-git-send-email-lrodriguez@atheros.com> References: <1248974562-8315-1-git-send-email-lrodriguez@atheros.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This does not change functionality. Signed-off-by: Luis R. Rodriguez --- net/wireless/reg.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index fb40428..2d1d183 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)