linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "rtg@timg"@tpi.com (Tim Gardner)
To: linux-wireless@vger.kernel.org
Subject: [PATCH 001/001 - Remove duplicate rtnl_unlock(), try #2
Date: Mon, 23 Apr 2007 15:33:22 -0600 (MDT)	[thread overview]
Message-ID: <20070423213322.36ECB411F@rtg> (raw)


Remove nested rtnl_unlock().

modified:   net/mac80211/ieee80211.c

Signed-off-by: Tim Gardner <tim.gardner@ubuntu.com>
---
 net/mac80211/ieee80211.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 3587cd4..64476f9 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -4815,10 +4815,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
 
 	rtnl_lock();
 	result = dev_alloc_name(local->mdev, local->mdev->name);
-	if (result < 0) {
-		rtnl_unlock();
+	if (result < 0)
 		goto fail_dev;
-	}
 
 	memcpy(local->mdev->dev_addr, local->hw.wiphy->perm_addr, ETH_ALEN);
 	SET_NETDEV_DEV(local->mdev, wiphy_dev(local->hw.wiphy));
-- 
1.4.4.2


                 reply	other threads:[~2007-04-23 22:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070423213322.36ECB411F@rtg \
    --to="rtg@timg"@tpi.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).