diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-08-08 07:59:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-09 17:11:24 -0400 |
commit | 0bab1cdc8c4d5392a5d9037cfbdbb2cacc91ce5e (patch) | |
tree | 14419fc238f4665617a73d5fbf928b267235650c /net/decnet | |
parent | 15693fd37fc3a49da356164ed15b571c175efc34 (diff) |
decnet: fix using plain integer as NULL warning
Fixes the following sparse warning:
net/decnet/dn_route.c:407:30: warning: Using plain integer as NULL pointer
net/decnet/dn_route.c:1923:22: warning: Using plain integer as NULL pointer
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 3107a2e24e6b..1c002c0fb712 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -404,7 +404,7 @@ void dn_rt_cache_flush(int delay) | |||
404 | 404 | ||
405 | if (delay <= 0) { | 405 | if (delay <= 0) { |
406 | spin_unlock_bh(&dn_rt_flush_lock); | 406 | spin_unlock_bh(&dn_rt_flush_lock); |
407 | dn_run_flush(0); | 407 | dn_run_flush(NULL); |
408 | return; | 408 | return; |
409 | } | 409 | } |
410 | 410 | ||
@@ -1920,7 +1920,7 @@ void __init dn_route_init(void) | |||
1920 | void __exit dn_route_cleanup(void) | 1920 | void __exit dn_route_cleanup(void) |
1921 | { | 1921 | { |
1922 | del_timer(&dn_route_timer); | 1922 | del_timer(&dn_route_timer); |
1923 | dn_run_flush(0); | 1923 | dn_run_flush(NULL); |
1924 | 1924 | ||
1925 | remove_proc_entry("decnet_cache", init_net.proc_net); | 1925 | remove_proc_entry("decnet_cache", init_net.proc_net); |
1926 | dst_entries_destroy(&dn_dst_ops); | 1926 | dst_entries_destroy(&dn_dst_ops); |