[AF_NETLINK]: module_put cleanup
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 2 Jan 2007 23:24:30 +0000 (15:24 -0800)
committerDavid 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

index 276131f..383dd4e 100644 (file)
@@ -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) {