staging: most: hdm-usb: unify returned errors

This patch is needed to return the same error codes for the same error
cases in the functions show_value() and store_value().

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andrey Shvetsov 2016-09-09 15:25:39 +02:00 committed by Greg Kroah-Hartman
parent a747b42c8c
commit a27cb25b64
1 changed files with 1 additions and 1 deletions

View File

@ -1083,7 +1083,7 @@ static ssize_t show_value(struct most_dci_obj *dci_obj,
reg_addr = dci_obj->reg_addr;
else if (get_static_reg_addr(ro_regs, attr->attr.name, &reg_addr) &&
get_static_reg_addr(rw_regs, attr->attr.name, &reg_addr))
return -EIO;
return -EFAULT;
err = drci_rd_reg(dci_obj->usb_device, reg_addr, &tmp_val);
if (err < 0)