Skip to content

Commit

Permalink
hwmon: (ibmaem) Fix return value
Browse files Browse the repository at this point in the history
Propagate appropriate error code obtained from ipmi_create_user()
instead of hardcoding.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Sachin Kamat authored and Guenter Roeck committed Sep 11, 2013
1 parent 1a3abbd commit 12ca0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/ibmaem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 12ca0b5

Please sign in to comment.