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

Commit a7b30ea5 authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck
Browse files

hwmon: (max16065) Use PTR_ERR_OR_ZERO



Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b8d56898
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -642,10 +642,7 @@ static int max16065_probe(struct i2c_client *client,

	hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name,
							   data, data->groups);
	if (unlikely(IS_ERR(hwmon_dev)))
		return PTR_ERR(hwmon_dev);

	return 0;
	return PTR_ERR_OR_ZERO(hwmon_dev);
}

static const struct i2c_device_id max16065_id[] = {