diff options
| author | Fabian Frederick <fabf@skynet.be> | 2014-12-22 13:36:15 -0500 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-12-23 08:33:58 -0500 |
| commit | 8aefc4d1c6acb03adfada4eaf7dd66c4d91c34f6 (patch) | |
| tree | 81a1d8c4889a614f03d7a84eac431aa8b1f26722 /net | |
| parent | 372e28661a5c1cda34598314e2e341a7529d6219 (diff) | |
netfilter: log: remove unnecessary sizeof(char)
sizeof(char) is always 1.
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
| -rw-r--r-- | net/netfilter/nf_log.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c index 43c926cae9c0..0d8448f19dfe 100644 --- 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) | |||
| 425 | nf_log_sysctl_table[i].procname = | 425 | nf_log_sysctl_table[i].procname = |
| 426 | nf_log_sysctl_fnames[i]; | 426 | nf_log_sysctl_fnames[i]; |
| 427 | nf_log_sysctl_table[i].data = NULL; | 427 | nf_log_sysctl_table[i].data = NULL; |
| 428 | nf_log_sysctl_table[i].maxlen = | 428 | nf_log_sysctl_table[i].maxlen = NFLOGGER_NAME_LEN; |
| 429 | NFLOGGER_NAME_LEN * sizeof(char); | ||
| 430 | nf_log_sysctl_table[i].mode = 0644; | 429 | nf_log_sysctl_table[i].mode = 0644; |
| 431 | nf_log_sysctl_table[i].proc_handler = | 430 | nf_log_sysctl_table[i].proc_handler = |
| 432 | nf_log_proc_dostring; | 431 | nf_log_proc_dostring; |
