staging: goldfish: Fix NULL comparison style
authorRavi Teja Darbha <ravi2j@gmail.com>
Wed, 2 Sep 2015 17:11:19 +0000 (22:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:38 +0000 (18:24 -0700)
Fixed NULL comparison style as suggested by checkpatch.pl with --strict
option.

Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/goldfish/goldfish_nand.c

index 66ae48fcc2b20e9ffa6818b4bf408bbc80f4afb3..623353db5a08ed019cd2f6d9d8bd8bd983d93067 100644 (file)
@@ -48,7 +48,7 @@ static u32 goldfish_nand_cmd_with_params(struct mtd_info *mtd,
        struct cmd_params *cps = nand->cmd_params;
        unsigned char __iomem  *base = nand->base;
 
-       if (cps == NULL)
+       if (!cps)
                return -1;
 
        switch (cmd) {
@@ -379,7 +379,7 @@ static int goldfish_nand_probe(struct platform_device *pdev)
        unsigned char __iomem  *base;
 
        r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (r == NULL)
+       if (!r)
                return -ENODEV;
 
        base = devm_ioremap(&pdev->dev, r->start, PAGE_SIZE);