mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
staging: most: fix sparse warning Using plain integer as NULL pointer
This patch fixes following sparse warning: Using plain integer as NULL pointer in drivers/staging/most/dim2/dim2.c Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7c5746c448
commit
efc8f3b2f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user