From: Karol Lewandowski <[EMAIL PROTECTED]> When loading of rate_control module fails, ieee80211_register_hw returns value from previous check. This patch fixes that.
Signed-off-by: Jiri Benc <[EMAIL PROTECTED]> --- net/d80211/ieee80211.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 2a053059b358f64991ac003c48f3de1da86c33ab diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c index 9f883a4..41c292b 100644 --- a/net/d80211/ieee80211.c +++ b/net/d80211/ieee80211.c @@ -4462,7 +4462,8 @@ int ieee80211_register_hw(struct net_dev if (result < 0) goto fail_if_sysfs; - if (rate_control_initialize(local) < 0) { + result = rate_control_initialize(local); + if (result < 0) { printk(KERN_DEBUG "%s: Failed to initialize rate control " "algorithm\n", dev->name); goto fail_rate; -- 1.3.0 - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html