Commit c17e5c85 authored by Colin Ian King's avatar Colin Ian King Committed by Vignesh Raghavendra
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarPratyush Yadav <p.yadav@ti.com>
parent 36ac0228
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
	}