mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
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>
This commit is contained in:
parent
1d9b041e9c
commit
fde55ea74c
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue