Skip to content

Commit 119d53d

Browse files
anabelenscLee Jones
authored andcommitted
mfd: ipaq-micro: Delete redundant return value check of platform_get_resource()
devm_ioremap_resource does checks on the resource. No need to duplicate this in the driver. Signed-off-by: Belén Sarabia <belensarabia@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 85fdaf8 commit 119d53d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/mfd/ipaq-micro.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ static int __init micro_probe(struct platform_device *pdev)
400400
micro->dev = &pdev->dev;
401401

402402
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
403-
if (!res)
404-
return -EINVAL;
405-
406403
micro->base = devm_ioremap_resource(&pdev->dev, res);
407404
if (IS_ERR(micro->base))
408405
return PTR_ERR(micro->base);

0 commit comments

Comments
 (0)