* [PATCH] staging: most: Use NULL pointer not plain integer
@ 2018-07-23 10:54 Laurence Rochfort
2018-07-24 12:00 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Laurence Rochfort @ 2018-07-23 10:54 UTC (permalink / raw)
To: Greg Kroah-Hartman, Christian Gromm, linux-kernel, devel
Cc: laurence.rochfort
Fix sparse warning: Using plain integer as NULL pointer
Signed-off-by: Laurence Rochfort <laurence.rochfort@gmail.com>
---
drivers/staging/most/dim2/dim2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c
index fe90a7c..31fbc1a 100644
--- a/drivers/staging/most/dim2/dim2.c
+++ b/drivers/staging/most/dim2/dim2.c
@@ -785,7 +785,7 @@ static int dim2_probe(struct platform_device *pdev)
if (ret)
return ret;
- dev->disable_platform = pdata ? pdata->disable : 0;
+ dev->disable_platform = pdata ? pdata->disable : NULL;
dev_info(&pdev->dev, "sync: num of frames per sub-buffer: %u\n", fcnt);
hal_ret = dim_startup(dev->io_base, dev->clk_speed, fcnt);
--
2.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-24 12:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-23 10:54 [PATCH] staging: most: Use NULL pointer not plain integer Laurence Rochfort
2018-07-24 12:00 ` Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.