Search Linux Wireless

[PATCH 001/001 - Remove duplicate rtnl_unlock(), try #2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove nested rtnl_unlock().

modified:   net/mac80211/ieee80211.c

Signed-off-by: Tim Gardner <tim.gardner@xxxxxxxxxx>
---
 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

-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux