Skip to content

Commit

Permalink
netfilter: nf_log: Remove NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shivani Bhardwaj authored and Pablo Neira Ayuso committed Jun 23, 2016
1 parent 506e65d commit 7e53e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7e53e7f

Please sign in to comment.