OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9b041
)
devlink: use direct return of genlmsg_reply
author
Li RongQing
<lirongqing@baidu.com>
Mon, 11 Feb 2019 11:09:07 +0000
(19:09 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 12 Feb 2019 17:34:19 +0000
(12:34 -0500)
This can remove redundant check
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c
patch
|
blob
|
history
diff --git
a/net/core/devlink.c
b/net/core/devlink.c
index
d3dfdca
..
283c3ed
100644
(file)
--- 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);