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:
98fa41d
)
mctp: Remove redundant if statements
author
Xu Wang
<vulab@iscas.ac.cn>
Thu, 2 Dec 2021 07:55:35 +0000
(07:55 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 2 Dec 2021 13:09:33 +0000
(13:09 +0000)
The 'if (dev)' statement already move into dev_{put , hold}, so remove
redundant if statements.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/route.c
patch
|
blob
|
history
diff --git
a/net/mctp/route.c
b/net/mctp/route.c
index
8d759b4
..
976a2b7
100644
(file)
--- a/
net/mctp/route.c
+++ b/
net/mctp/route.c
@@
-890,8
+890,7
@@
out_release:
if (!ext_rt)
mctp_route_release(rt);
- if (dev)
- dev_put(dev);
+ dev_put(dev);
return rc;