diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2016-06-12 00:26:10 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-23 13:32:43 +0200 |
commit | 7e53e7f8ca24e01292d114373f35b2999301d879 (patch) | |
tree | 865db5fa0c79e95105d48caf97178636aaced446 /net/netfilter/nf_log.c | |
parent | 506e65df52f2bf250aa9b4264efd180d1646bdec (diff) | |
download | linux-7e53e7f8ca24e01292d114373f35b2999301d879.tar.bz2 |
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>
Diffstat (limited to 'net/netfilter/nf_log.c')
-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 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(); |