mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-28 16:53:49 +00:00
mtd: cfi_cmdset_0002: remove redundant assignment to variable ret
Variable ret is being assigned a value that is never read, the following goto statement jumps to a statement that assigns ret a return from the call to function do_write_oneword_once. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20241002172258.958113-1-colin.i.king@gmail.com
This commit is contained in:
parent
7d189579a2
commit
4c9b44e774
@ -1779,10 +1779,8 @@ static int __xipram do_write_oneword_retry(struct map_info *map,
|
||||
map_write(map, CMD(0xF0), chip->start);
|
||||
/* FIXME - should have reset delay before continuing */
|
||||
|
||||
if (++retry_cnt <= MAX_RETRIES) {
|
||||
ret = 0;
|
||||
if (++retry_cnt <= MAX_RETRIES)
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
xip_enable(map, chip, adr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user