mtd: spi-nor: remove redundant continue statement
The continue statement at the end of a for-loop has no effect,
invert the if expression and remove the continue.
Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
This commit is contained in:
committed by
Vignesh Raghavendra
parent
36ac022862
commit
c17e5c85b3
@@ -1411,9 +1411,7 @@ spi_nor_find_best_erase_type(const struct spi_nor_erase_map *map,
|
||||
continue;
|
||||
|
||||
spi_nor_div_by_erase_size(erase, addr, &rem);
|
||||
if (rem)
|
||||
continue;
|
||||
else
|
||||
if (!rem)
|
||||
return erase;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user