projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b96547
)
net: rds: remove unnecessary NULL check
author
Zhu Yanjun
<yanjun.zhu@oracle.com>
Sun, 30 Dec 2018 15:24:11 +0000
(23:24 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 1 Jan 2019 17:54:19 +0000
(09:54 -0800)
In kfree, the NULL check is done.
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c
patch
|
blob
|
history
diff --git
a/net/rds/tcp.c
b/net/rds/tcp.c
index
b9bbcf3
..
c16f0a3
100644
(file)
--- a/
net/rds/tcp.c
+++ b/
net/rds/tcp.c
@@
-623,7
+623,7
@@
static void __net_exit rds_tcp_exit_net(struct net *net)
if (rtn->rds_tcp_sysctl)
unregister_net_sysctl_table(rtn->rds_tcp_sysctl);
- if (net != &init_net
&& rtn->ctl_table
)
+ if (net != &init_net)
kfree(rtn->ctl_table);
}