summaryrefslogtreecommitdiff
path: root/net/core/devlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r--net/core/devlink.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index d3dfdcacf7eb..283c3ed9f25e 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -4356,11 +4356,8 @@ static int devlink_fmsg_snd(struct devlink_fmsg *fmsg,
err = -EMSGSIZE;
goto nla_put_failure;
}
- err = genlmsg_reply(skb, info);
- if (err)
- return err;
- return 0;
+ return genlmsg_reply(skb, info);
nla_put_failure:
nlmsg_free(skb);