diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 73b845d3cd33f494fe3aba821f6edda91a5d9e81..18e325ce65421ecb15dfebb248a69579adac4b87 100644 --- a/net/netfilter/nf_log.c +++ b/net/netfilter/nf_log.c @@ -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();