projects
/
platform
/
kernel
/
linux-rpi.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
|
history
diff --git
a/net/netfilter/nf_log.c
b/net/netfilter/nf_log.c
index
73b845d
..
18e325c
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();