diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-01-03 00:24:30 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-01-04 03:38:15 +0100 |
commit | 5e7c001c6279f38b15fef5369496fe1043765727 (patch) | |
tree | 84be64d45878d3dfd5720eafc82f46f63fdded23 /net/netlink/af_netlink.c | |
parent | [XFRM_USER]: avoid pointless void ** casts (diff) | |
download | linux-5e7c001c6279f38b15fef5369496fe1043765727.tar.xz linux-5e7c001c6279f38b15fef5369496fe1043765727.zip |
[AF_NETLINK]: module_put cleanup
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>
Diffstat (limited to '')
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 276131fe56dd..383dd4e82ee1 100644 --- 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) { |