[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>
This commit is contained in:
parent
22e7005023
commit
5e7c001c62
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user