mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
mtd: cfi_cmdset_0002: remove redundant assignment to variable timeo
The variable timeo is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Link: https://lore.kernel.org/r/20210325174514.486272-1-colin.king@canonical.com Addresses-Coverity: ("Unused value")
This commit is contained in:
parent
7e44041136
commit
f3907773d6
@ -1653,7 +1653,7 @@ static int __xipram do_write_oneword_once(struct map_info *map,
|
||||
unsigned long adr, map_word datum,
|
||||
int mode, struct cfi_private *cfi)
|
||||
{
|
||||
unsigned long timeo = jiffies + HZ;
|
||||
unsigned long timeo;
|
||||
/*
|
||||
* We use a 1ms + 1 jiffies generic timeout for writes (most devices
|
||||
* have a max write time of a few hundreds usec). However, we should
|
||||
|
Loading…
Reference in New Issue
Block a user