diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-11 19:09:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 12:34:19 -0500 |
commit | fde55ea74ce69b1ba2fb108b197f7c3c6b8749e1 (patch) | |
tree | 7b3e7fc2bd9a84409e0a69042cd1223ee2345b2d /net/core | |
parent | 1d9b041e9c5cb6a06e0943f14daf9806e6fe55f1 (diff) |
devlink: use direct return of genlmsg_reply
This can remove redundant check
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/devlink.c | 5 |
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); |