]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
decnet: fix using plain integer as NULL warning
authorYueHaibing <yuehaibing@huawei.com>
Wed, 8 Aug 2018 11:59:32 +0000 (19:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:11:24 +0000 (14:11 -0700)
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>
net/decnet/dn_route.c

index 3107a2e24e6b2e76a7aaa9bf58c2a7b103bec617..1c002c0fb712a45e20b4e3daa72da4b6d19e935a 100644 (file)
@@ -404,7 +404,7 @@ void dn_rt_cache_flush(int delay)
 
        if (delay <= 0) {
                spin_unlock_bh(&dn_rt_flush_lock);
-               dn_run_flush(0);
+               dn_run_flush(NULL);
                return;
        }
 
@@ -1920,7 +1920,7 @@ void __init dn_route_init(void)
 void __exit dn_route_cleanup(void)
 {
        del_timer(&dn_route_timer);
-       dn_run_flush(0);
+       dn_run_flush(NULL);
 
        remove_proc_entry("decnet_cache", init_net.proc_net);
        dst_entries_destroy(&dn_dst_ops);