You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9c76f01270
commit
10d7108466
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user