--- zzzz-none-000/linux-2.6.39.4/drivers/mtd/chips/cfi_cmdset_0002.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/drivers/mtd/chips/cfi_cmdset_0002.c 2021-11-10 13:38:15.000000000 +0000 @@ -1054,7 +1054,6 @@ static inline int do_read_secsi_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) { DECLARE_WAITQUEUE(wait, current); - unsigned long timeo = jiffies + HZ; struct cfi_private *cfi = map->fldrv_priv; retry: @@ -1068,7 +1067,6 @@ schedule(); remove_wait_queue(&chip->wq, &wait); - timeo = jiffies + HZ; goto retry; }