commit 02aa41563bd0f14268d2142ab69694880d3425a1
Author: Pavel <pavel@xxxxxx>
Date: Wed Feb 11 23:22:51 2015 +0100
Fix compilation of wl1251 specific parts with 3.20-rc0.
Signed-off-by: Pavel Machek <pavel@xxxxxx>
diff --git a/drivers/net/wireless/ti/wl1251/netlink.c b/drivers/net/wireless/ti/wl1251/netlink.c[...]
index e5f5a45..90a5486 100644
--- a/drivers/net/wireless/ti/wl1251/netlink.c
+++ b/drivers/net/wireless/ti/wl1251/netlink.c
@@ -406,14 +398,10 @@ static int wl1251_nl_phy_reg_read(struct sk_buff *skb, struct genl_info *info)
if (nla_put_u32(msg, WL1251_NL_ATTR_REG_VAL, *reg_value))
goto nla_put_failure;
- ret = genlmsg_end(msg, hdr);
- if (ret < 0) {
- wl1251_error("%s() failed", __func__);
- goto nla_put_failure;
- }
+ genlmsg_end(msg, hdr);
kfree(reg_value);
-
+
return genlmsg_reply(msg, info);
nla_put_failure: