diff options
author | Li Nan <[email protected]> | 2023-06-24 01:32:35 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-07-27 00:13:30 -0700 |
commit | 02c67a3b72b13951c2ca134bd7065f03ec57946d (patch) | |
tree | 203ee6021774545997a747b8da10074fd727486d /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 605eeda6e70f692311b36180f217208d367476f6 (diff) |
md: remove redundant check in fix_read_error()
In fix_read_error(), 'success' will be checked immediately after assigning
it, if it is set to 1 then the loop will break. Checking it again in
condition of loop is redundant. Clean it up.
Signed-off-by: Li Nan <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions