diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2016-06-11 18:56:10 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-23 11:32:43 (GMT) |
commit | 7e53e7f8ca24e01292d114373f35b2999301d879 (patch) | |
tree | 865db5fa0c79e95105d48caf97178636aaced446 | |
parent | 506e65df52f2bf250aa9b4264efd180d1646bdec (diff) | |
download | linux-7e53e7f8ca24e01292d114373f35b2999301d879.tar.xz |
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 <shivanib134@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nf_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 73b845d..18e325c 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(); |