diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-08-03 16:45:42 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-15 16:37:14 +1000 |
commit | b11fd35325a875eef987de1d3affc60c0c222d23 (patch) | |
tree | 174784bbea92ac3132c85a5c1acfa2d5e85fcbb6 /libflash | |
parent | 05f0ffdcd5a955acab3473185aa52a3d88909b39 (diff) | |
download | skiboot-b11fd35325a875eef987de1d3affc60c0c222d23.zip skiboot-b11fd35325a875eef987de1d3affc60c0c222d23.tar.gz skiboot-b11fd35325a875eef987de1d3affc60c0c222d23.tar.bz2 |
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
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/libflash.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libflash/libflash.c b/libflash/libflash.c index 9bdc7d6..38f87b8 100644 --- a/libflash/libflash.c +++ b/libflash/libflash.c @@ -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; |