diff options
| author | John Keeping <[email protected]> | 2023-03-27 12:01:08 +0100 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2023-04-21 15:16:01 +0800 |
| commit | 999680c4ed80e21e014e94c9bdb79c45a5a5a853 (patch) | |
| tree | 0c80483ad6aa829d8ad4d58a889fd736cf9d09c1 /scripts/basic | |
| parent | 6fa83833b01c9fcd8297b71c8465df3c7fe6db31 (diff) | |
rockchip: misc: fix misc_read() return check
misc_read() is documented to return the number of bytes read or a
negative error value. The Rockchip drivers currently do not implement
this correctly and instead return zero on success or a negative error
value.
In preparation for fixing the drivers, fix the condition here to only
error on negative values.
Suggested-by: Jonas Karlman <[email protected]>
Signed-off-by: John Keeping <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
