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

Commit eb8ad609 authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Mark Brown
Browse files

regulator: fan53555: Use PTR_RET function



Used PTR_RET function instead of IS_ERR and PTR_ERR.
Patch found using coccinelle.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a937536b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -219,9 +219,7 @@ static int fan53555_regulator_register(struct fan53555_device_info *di,
	rdesc->owner = THIS_MODULE;

	di->rdev = regulator_register(&di->desc, config);
	if (IS_ERR(di->rdev))
		return PTR_ERR(di->rdev);
	return 0;
	return PTR_RET(di->rdev);

}