Skip to content

Commit

Permalink
[AF_NETLINK]: module_put cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and David S. Miller committed Jan 4, 2007
1 parent 22e7005 commit 5e7c001
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5e7c001

Please sign in to comment.