Skip to contentSkip to conversation

staging: most: Use NULL pointer not plain integer

PATCH In review Laurence Rochfort 2 participants 2 messages Jul 23, 2018 – Jul 24, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: most: Use NULL pointer not plain integer

Fix sparse warning: Using plain integer as NULL pointer

---
 drivers/staging/most/dim2/dim2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/most/dim2/dim2.c +1 -1
index fe90a7c..31fbc1a 100644
@@ -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);
Signature · 1 line
2.9.5
#1 lore raw
Quoted 6 lines · Laurence Rochfort

Fix sparse warning: Using plain integer as NULL pointer

---
 drivers/staging/most/dim2/dim2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

This patch does not apply to my tree at all :(