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

Commit 12ca0b56 authored by Sachin Kamat's avatar Sachin Kamat Committed by Guenter Roeck
Browse files

hwmon: (ibmaem) Fix return value



Propagate appropriate error code obtained from ipmi_create_user()
instead of hardcoding.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 1a3abbd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -292,7 +292,7 @@ static int aem_init_ipmi_data(struct aem_ipmi_data *data, int iface,
		dev_err(bmc,
			"Unable to register user with IPMI interface %d\n",
			data->interface);
		return -EACCES;
		return err;
	}

	return 0;