Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70a19b7e authored by Harman Kalra's avatar Harman Kalra Committed by Tejun Heo
Browse files

pata_at91: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR



Signed-off-by: default avatarHarman Kalra <harman4linux@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 02d9d3cb
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -347,10 +347,8 @@ static int at91sam9_smc_fields_init(struct device *dev)

	field.reg = AT91SAM9_SMC_MODE(AT91SAM9_SMC_GENERIC);
	fields.mode = devm_regmap_field_alloc(dev, smc, field);
	if (IS_ERR(fields.mode))
		return PTR_ERR(fields.mode);

	return 0;
	return PTR_ERR_OR_ZERO(fields.mode);
}

static int pata_at91_probe(struct platform_device *pdev)