From: Hariprasad Kelam Date: Sat, 6 Apr 2019 12:29:12 +0000 (+0530) Subject: xen: xen-pciback: fix warning Using plain integer as NULL pointer X-Git-Tag: v5.2-rc1~51^2~6 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=515762b9164a4e4ba5c775ceab89753a20a0c632;p=uclinux-h8%2Flinux.git xen: xen-pciback: fix warning Using plain integer as NULL pointer Changes passing function argument 0 to NULL to avoid below sparse warning CHECK drivers/xen/xen-pciback/xenbus.c drivers/xen/xen-pciback/xenbus.c:700:51: warning: Using plain integer as NULL pointer Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha Signed-off-by: Boris Ostrovsky --- diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/xenbus.c index 23f7f6ec7d1f..833b2d2c4318 100644 --- a/drivers/xen/xen-pciback/xenbus.c +++ b/drivers/xen/xen-pciback/xenbus.c @@ -697,7 +697,7 @@ static int xen_pcibk_xenbus_probe(struct xenbus_device *dev, /* We need to force a call to our callback here in case * xend already configured us! */ - xen_pcibk_be_watch(&pdev->be_watch, NULL, 0); + xen_pcibk_be_watch(&pdev->be_watch, NULL, NULL); out: return err;