Skip to contentSkip to conversation

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

PATCH rtg@timg (Tim Gardner) 1 participant 1 message Apr 23, 2007 mac80211

lore
Share & tools
lore
#0 lore raw

Remove nested rtnl_unlock().

modified: net/mac80211/ieee80211.c

---
 net/mac80211/ieee80211.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
net/mac80211/ieee80211.c +1 -3
index 3587cd4..64476f9 100644
@@ -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));
Signature · 1 line
1.4.4.2