diff options
author | Jia He <hejianet@gmail.com> | 2016-09-30 05:29:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-30 07:50:45 +0200 |
commit | 6d4a741cbbfa6612a479656654ca5edf7becc72c (patch) | |
tree | d977daa27ad975a6acbc313ec792592f4cf50847 /net/sctp/proc.c | |
parent | ipv6: Remove useless parameter in __snmp6_fill_statsdev (diff) | |
download | linux-6d4a741cbbfa6612a479656654ca5edf7becc72c.tar.xz linux-6d4a741cbbfa6612a479656654ca5edf7becc72c.zip |
net: Suppress the "Comparison to NULL could be written" warnings
This is to suppress the checkpatch.pl warning "Comparison to NULL
could be written". No functional changes here.
Signed-off-by: Jia He <hejianet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/sctp/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/proc.c b/net/sctp/proc.c index 09e16c2b5c17..206377fe91ec 100644 --- a/net/sctp/proc.c +++ b/net/sctp/proc.c @@ -81,7 +81,7 @@ static int sctp_snmp_seq_show(struct seq_file *seq, void *v) snmp_get_cpu_field_batch(buff, sctp_snmp_list, net->sctp.sctp_statistics); - for (i = 0; sctp_snmp_list[i].name != NULL; i++) + for (i = 0; sctp_snmp_list[i].name; i++) seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, buff[i]); |