Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);