Commit 5e7c001c authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by David S. Miller

[AF_NETLINK]: module_put cleanup

This patch removes redundant argument check for module_put().
Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22e70050
......@@ -472,7 +472,6 @@ static int netlink_release(struct socket *sock)
NETLINK_URELEASE, &n);
}
if (nlk->module)
module_put(nlk->module);
netlink_table_grab();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment