提交 7e53e7f8 编写于 作者: S Shivani Bhardwaj 提交者: Pablo Neira Ayuso

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: NShivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 506e65df
...@@ -181,7 +181,7 @@ int nf_logger_find_get(int pf, enum nf_log_type type) ...@@ -181,7 +181,7 @@ int nf_logger_find_get(int pf, enum nf_log_type type)
if (logger == NULL) if (logger == NULL)
goto out; goto out;
if (logger && try_module_get(logger->me)) if (try_module_get(logger->me))
ret = 0; ret = 0;
out: out:
rcu_read_unlock(); rcu_read_unlock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册