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:
Sachin Kamat 2013-09-11 09:49:49 +05:30 • committed by Guenter Roeck
commit 12ca0b569e

View file

@ -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;