staging: most: fix sparse warning Using plain integer as NULL pointer
authorMarcin Ciupak <marcin.s.ciupak@gmail.com>
Fri, 15 Jun 2018 14:21:09 +0000 (14:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 13:08:51 +0000 (22:08 +0900)
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>
drivers/staging/most/dim2/dim2.c

index fe90a7cb56f7f8d5b83017456d8b53331e81c05d..31fbc1a75b068623b5c8f7c08d8f8fec1e377200 100644 (file)
@@ -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);