Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

YueHaibing and committed by
David S. Miller
0bab1cdc 15693fd3

+2 -2
+2 -2
net/decnet/dn_route.c
··· 404 404 405 405 if (delay <= 0) { 406 406 spin_unlock_bh(&dn_rt_flush_lock); 407 - dn_run_flush(0); 407 + dn_run_flush(NULL); 408 408 return; 409 409 } 410 410 ··· 1920 1920 void __exit dn_route_cleanup(void) 1921 1921 { 1922 1922 del_timer(&dn_route_timer); 1923 - dn_run_flush(0); 1923 + dn_run_flush(NULL); 1924 1924 1925 1925 remove_proc_entry("decnet_cache", init_net.proc_net); 1926 1926 dst_entries_destroy(&dn_dst_ops);