netfilter: nf_log: Remove NULL check
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- net/netfilter/nf_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_log.c +1 -1
@@ -167,7 +167,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 ();
Signature · 1 line
1.9.1
Quoted 3 lines · Shivani Bhardwaj
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.
Applied, thanks Shivani.