diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-03-25 18:45:14 +0100 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2021-04-07 20:43:19 +0200 |
commit | f3907773d60229afa8e6c0a3ee5085715192a9cb (patch) | |
tree | 30a1f9d9684e0c52eb0cab802616045a702ea466 /drivers/mtd/chips | |
parent | mtd: cfi_cmdset_0002: Disable buffered writes for AMD chip 0x2201 (diff) | |
download | linux-f3907773d60229afa8e6c0a3ee5085715192a9cb.tar.xz linux-f3907773d60229afa8e6c0a3ee5085715192a9cb.zip |
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")
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index 0bd8b5af28c6..627adc320913 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -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 |