projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e7005
)
[AF_NETLINK]: module_put cleanup
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Tue, 2 Jan 2007 23:24:30 +0000
(15:24 -0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 4 Jan 2007 02:38:15 +0000
(18:38 -0800)
This patch removes redundant argument check for module_put().
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c
patch
|
blob
|
history
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index
276131f
..
383dd4e
100644
(file)
--- a/
net/netlink/af_netlink.c
+++ b/
net/netlink/af_netlink.c
@@
-472,8
+472,7
@@
static int netlink_release(struct socket *sock)
NETLINK_URELEASE, &n);
}
- if (nlk->module)
- module_put(nlk->module);
+ module_put(nlk->module);
netlink_table_grab();
if (nlk->flags & NETLINK_KERNEL_SOCKET) {