diff options
author | Colin Ian King <[email protected]> | 2021-06-03 13:28:12 +0100 |
---|---|---|
committer | Joel Stanley <[email protected]> | 2021-06-04 14:11:48 +0930 |
commit | 910810945707fe9877ca86a0dca4e585fd05e37b (patch) | |
tree | 0ecdbb134b09058135e50245b5388a70de9e81ff /include/linux/fpga/fpga-bridge.h | |
parent | 19a52178125c1e8b84444d85f2ce34c0964b4a91 (diff) |
fsi: core: Fix return of error values on failures
Currently the cfam_read and cfam_write functions return the provided
number of bytes given in the count parameter and not the error return
code in variable rc, hence all failures of read/writes are being
silently ignored. Fix this by returning the error code in rc.
Addresses-Coverity: ("Unused value")
Fixes: d1dcd6782576 ("fsi: Add cfam char devices")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Jeremy Kerr <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joel Stanley <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions