diff options
| author | Colin Ian King <[email protected]> | 2024-11-07 15:23:57 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2024-11-14 18:54:27 +0000 |
| commit | 67efb77cb0692ec40c416eae2dfbc70116e8ea4e (patch) | |
| tree | 5ac538dade2b852c8b0c539c3f1a5e9f1f616ce1 /drivers/cdx/controller/cdx_controller.c | |
| parent | mtd: ubi: fix unreleased fwnode_handle in find_volume_fwnode() (diff) | |
| download | kernel-67efb77cb0692ec40c416eae2dfbc70116e8ea4e.tar.gz kernel-67efb77cb0692ec40c416eae2dfbc70116e8ea4e.zip | |
mtd: ubi: remove redundant check on bytes_left at end of function
In function ubi_nvmem_reg_read the while-loop can only be exiting
of bytes_left is zero or an error has occurred. There is an exit
return path if an error occurs, so the bytes_left can only be
zero after that point. Hence the check for a non-zero bytes_left
at the end of the function is redundant and can be removed. Remove
the check and just return 0.
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Zhihao Cheng <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
