Commit fde55ea7 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller

devlink: use direct return of genlmsg_reply

This can remove redundant check
Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1d9b041e
...@@ -4356,11 +4356,8 @@ static int devlink_fmsg_snd(struct devlink_fmsg *fmsg, ...@@ -4356,11 +4356,8 @@ static int devlink_fmsg_snd(struct devlink_fmsg *fmsg,
err = -EMSGSIZE; err = -EMSGSIZE;
goto nla_put_failure; goto nla_put_failure;
} }
err = genlmsg_reply(skb, info);
if (err)
return err;
return 0; return genlmsg_reply(skb, info);
nla_put_failure: nla_put_failure:
nlmsg_free(skb); nlmsg_free(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment