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

Commit 7e53e7f8 authored by Shivani Bhardwaj's avatar Shivani Bhardwaj Committed by Pablo Neira Ayuso
Browse files

netfilter: nf_log: Remove NULL check



If 'logger' was NULL, there would be a direct jump to the label 'out',
since it has already been checked for NULL, remove this unnecessary
check.

Signed-off-by: default avatarShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 506e65df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ int nf_logger_find_get(int pf, enum nf_log_type type)
	if (logger == NULL)
		goto out;

	if (logger && try_module_get(logger->me))
	if (try_module_get(logger->me))
		ret = 0;
out:
	rcu_read_unlock();