Skip to content

Commit

Permalink
libflash/blocklevel.c: Remove unused store to ecc_len
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bsingharora authored and stewartsmith committed May 24, 2018
1 parent 7ed804a commit 5802477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libflash/blocklevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5802477

Please sign in to comment.