libflash/libflash: Remove logicially dead code (CID 97821)
libflash/libflash.c:
line 369: chunk = 0x100 - (d & 0xff);
line 370: if (chunk > 0x100)
At condition chunk > 256U, the value of chunk must be between 1 and 256.
Fixes CID 97821
@@ -367,8 +367,6 @@ static int flash_write(struct blocklevel_device *bl, uint32_t dst, const void *s
/* Handle misaligned start */
chunk = 0x100 - (d & 0xff);
- if (chunk > 0x100)
- chunk = 0x100;
if (chunk > todo)
chunk = todo;
