aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2024-11-07 15:23:57 +0000
committerRichard Weinberger <[email protected]>2024-11-14 18:54:27 +0000
commit67efb77cb0692ec40c416eae2dfbc70116e8ea4e (patch)
tree5ac538dade2b852c8b0c539c3f1a5e9f1f616ce1 /drivers/cdx/controller/cdx_controller.c
parentmtd: ubi: fix unreleased fwnode_handle in find_volume_fwnode() (diff)
downloadkernel-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