netfilter: nf_log: Remove NULL check
authorShivani Bhardwaj <shivanib134@gmail.com>
Sat, 11 Jun 2016 18:56:10 +0000 (00:26 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Jun 2016 11:32:43 +0000 (13:32 +0200)
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 <shivanib134@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_log.c

index 73b845d3cd33f494fe3aba821f6edda91a5d9e81..18e325ce65421ecb15dfebb248a69579adac4b87 100644 (file)
@@ -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();
This page took 0.024657 seconds and 5 git commands to generate.