From: Mariusz Kozlowski Date: Tue, 2 Jan 2007 23:24:30 +0000 (-0800) Subject: [AF_NETLINK]: module_put cleanup X-Git-Tag: v2.6.20-rc4~85^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e7c001c6279f38b15fef5369496fe1043765727;p=linux-2.6 [AF_NETLINK]: module_put cleanup This patch removes redundant argument check for module_put(). Signed-off-by: Mariusz Kozlowski Signed-off-by: David S. Miller --- diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 276131fe56..383dd4e82e 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) {