projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
506e65d
)
netfilter: nf_log: Remove NULL check
author
Shivani Bhardwaj
<shivanib134@gmail.com>
Sat, 11 Jun 2016 18:56:10 +0000
(
00:26
+0530)
committer
Pablo 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
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_log.c
b/net/netfilter/nf_log.c
index 73b845d3cd33f494fe3aba821f6edda91a5d9e81..18e325ce65421ecb15dfebb248a69579adac4b87 100644
(file)
--- 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();