* [PATCH 001/001 - Remove duplicate rtnl_unlock(), try #2
@ 2007-04-23 21:33 Tim Gardner
0 siblings, 0 replies; only message in thread
From: Tim Gardner @ 2007-04-23 21:33 UTC (permalink / raw)
To: linux-wireless
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-23 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-23 21:33 [PATCH 001/001 - Remove duplicate rtnl_unlock(), try #2 Tim Gardner
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).