Skip to contentSkip to conversation

staging: goldfish: Fix NULL comparison style

PATCH New Ravi Teja Darbha 1 participant 1 message Sep 2, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: goldfish: Fix NULL comparison style

Fixed NULL comparison style as suggested by checkpatch.pl with --strict option.

---
 drivers/staging/goldfish/goldfish_nand.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/goldfish/goldfish_nand.c +2 -2
index 66ae48f..623353db5 100644
@@ -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);
Signature · 1 line
1.9.1