Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: goldfish: Fix NULL comparison style

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>

authored by

Ravi Teja Darbha and committed by
Greg Kroah-Hartman
10d71084 9c76f012

+2 -2
+2 -2
drivers/staging/goldfish/goldfish_nand.c
··· 48 48 struct cmd_params *cps = nand->cmd_params; 49 49 unsigned char __iomem *base = nand->base; 50 50 51 - if (cps == NULL) 51 + if (!cps) 52 52 return -1; 53 53 54 54 switch (cmd) { ··· 379 379 unsigned char __iomem *base; 380 380 381 381 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); 382 - if (r == NULL) 382 + if (!r) 383 383 return -ENODEV; 384 384 385 385 base = devm_ioremap(&pdev->dev, r->start, PAGE_SIZE);