diff options
author | Balbir singh <bsingharora@gmail.com> | 2018-05-18 09:31:05 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-24 04:03:20 -0500 |
commit | 5802477a821e754456214bc960f9d1342fb50f9e (patch) | |
tree | b16a9ffd1755bb70275387c14b2636fa730a3ed1 /libflash | |
parent | 7ed804a6fbc078a8b0468d45ac54f29112a47e5e (diff) | |
download | talos-skiboot-5802477a821e754456214bc960f9d1342fb50f9e.tar.gz talos-skiboot-5802477a821e754456214bc960f9d1342fb50f9e.zip |
libflash/blocklevel.c: Remove unused store to ecc_len
Caught by scan-build. We rewrite ecc_len with a different
value prior to use
Signed-off-by: Balbir singh <bsingharora@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/blocklevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/blocklevel.c b/libflash/blocklevel.c index 172f8fcc..bbcc8e61 100644 --- a/libflash/blocklevel.c +++ b/libflash/blocklevel.c @@ -205,7 +205,7 @@ int blocklevel_write(struct blocklevel_device *bl, uint64_t pos, const void *buf { int rc, ecc_protection; struct ecc64 *buffer; - uint64_t ecc_len = ecc_buffer_size(len); + uint64_t ecc_len; uint64_t ecc_start, ecc_pos, ecc_diff; FL_DBG("%s: 0x%" PRIx64 "\t%p\t0x%" PRIx64 "\n", __func__, pos, buf, len); |