提交 8aefc4d1 编写于 作者: F Fabian Frederick 提交者: Pablo Neira Ayuso

netfilter: log: remove unnecessary sizeof(char)

sizeof(char) is always 1.
Suggested-by: NJoe Perches <joe@perches.com>
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 372e2866
...@@ -425,8 +425,7 @@ static int netfilter_log_sysctl_init(struct net *net) ...@@ -425,8 +425,7 @@ static int netfilter_log_sysctl_init(struct net *net)
nf_log_sysctl_table[i].procname = nf_log_sysctl_table[i].procname =
nf_log_sysctl_fnames[i]; nf_log_sysctl_fnames[i];
nf_log_sysctl_table[i].data = NULL; nf_log_sysctl_table[i].data = NULL;
nf_log_sysctl_table[i].maxlen = nf_log_sysctl_table[i].maxlen = NFLOGGER_NAME_LEN;
NFLOGGER_NAME_LEN * sizeof(char);
nf_log_sysctl_table[i].mode = 0644; nf_log_sysctl_table[i].mode = 0644;
nf_log_sysctl_table[i].proc_handler = nf_log_sysctl_table[i].proc_handler =
nf_log_proc_dostring; nf_log_proc_dostring;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册