projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
372e286
)
netfilter: log: remove unnecessary sizeof(char)
author
Fabian Frederick
<
[email protected]
>
Mon, 22 Dec 2014 18:36:15 +0000
(19:36 +0100)
committer
Pablo Neira Ayuso
<
[email protected]
>
Tue, 23 Dec 2014 13:33:58 +0000
(14:33 +0100)
sizeof(char) is always 1.
Suggested-by: Joe Perches <
[email protected]
>
Signed-off-by: Fabian Frederick <
[email protected]
>
Signed-off-by: Pablo Neira Ayuso <
[email protected]
>
net/netfilter/nf_log.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_log.c
b/net/netfilter/nf_log.c
index 43c926cae9c00de1306144abcddcf64f510c2864..0d8448f19dfe982f64879d9dc55ba7d746696196 100644
(file)
--- a/
net/netfilter/nf_log.c
+++ b/
net/netfilter/nf_log.c
@@
-425,8
+425,7
@@
static int netfilter_log_sysctl_init(struct net *net)
nf_log_sysctl_table[i].procname =
nf_log_sysctl_fnames[i];
nf_log_sysctl_table[i].data = NULL;
- nf_log_sysctl_table[i].maxlen =
- NFLOGGER_NAME_LEN * sizeof(char);
+ nf_log_sysctl_table[i].maxlen = NFLOGGER_NAME_LEN;
nf_log_sysctl_table[i].mode = 0644;
nf_log_sysctl_table[i].proc_handler =
nf_log_proc_dostring;