mirror of https://gitee.com/openkylin/linux.git
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:
parent
a747b42c8c
commit
a27cb25b64
|
@ -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, ®_addr) &&
|
||||
get_static_reg_addr(rw_regs, attr->attr.name, ®_addr))
|
||||
return -EIO;
|
||||
return -EFAULT;
|
||||
|
||||
err = drci_rd_reg(dci_obj->usb_device, reg_addr, &tmp_val);
|
||||
if (err < 0)
|
||||
|
|
Loading…
Reference in New Issue