Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -472,7 +472,6 @@ static int netlink_release(struct socket *sock)
				NETLINK_URELEASE, &n);
				NETLINK_URELEASE, &n);
	}	
	}	


	if (nlk->module)
	module_put(nlk->module);
	module_put(nlk->module);


	netlink_table_grab();
	netlink_table_grab();