From: Shivani Bhardwaj Date: Sat, 11 Jun 2016 18:56:10 +0000 (+0530) Subject: netfilter: nf_log: Remove NULL check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7e53e7f8ca24e01292d114373f35b2999301d879;p=linux-beck.git 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: Shivani Bhardwaj Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 73b845d3cd33..18e325ce6542 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();