mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
hwmon: (ibmaem) Fix return value
Propagate appropriate error code obtained from ipmi_create_user() instead of hardcoding. Signed-off-by: Sachin Kamat <[email protected]> Cc: Darrick J. Wong <[email protected]> Acked-by: Darrick J. Wong <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
1a3abbd0b9
commit
12ca0b569e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue