From: Mariusz Kozlowski Date: Tue, 2 Jan 2007 23:24:30 +0000 (-0800) Subject: [AF_NETLINK]: module_put cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e7c001c6279f38b15fef5369496fe1043765727;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 276131fe56dd..383dd4e82ee1 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) {