mtd: remove duplicate assignment of chip->state
This is a trivial patch which removes unnecessary assignment of chip->state in put_chip(). It's duplicated.
Signed-off-by Tadashi Abe <[email protected]>
--- drivers/mtd/chips/cfi_cmdset_0001.c | 1 - drivers/mtd/chips/cfi_cmdset_0002.c | 1 - drivers/mtd/lpddr/lpddr_cmds.c | 1 - 3 files changed, 0 insertions(+), 3 deletions(-)
drivers/mtd/chips/cfi_cmdset_0001.c +0 -1
@@ -997,7 +997,6 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adswitch (chip->oldstate) {case FL_ERASING : - chip->state = chip->oldstate;/* What if one interleaved chip has finished and the other hasn't? The old code would leave the finished one in READY mode. That's bad, and caused -EROFS
drivers/mtd/chips/cfi_cmdset_0002.c +0 -1
@@ -762,7 +762,6 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adswitch (chip->oldstate) {case FL_ERASING : - chip->state = chip->oldstate;map_write (map, cfi->sector_erase_cmd, chip->in_progress_block_addr); chip->oldstate =FL_READY ; chip->state =FL_ERASING ;
drivers/mtd/lpddr/lpddr_cmds.c +0 -1
@@ -383,7 +383,6 @@ static void put_chip(struct map_info *map, struct flchip *chip)switch (chip->oldstate) {case FL_ERASING : - chip->state = chip->oldstate;map_write (map,CMD (LPDDR_RESUME ), map->pfow_base +PFOW_COMMAND_CODE ); map_write(map, CMD(LPDDR_START_EXECUTION),
Signature · 1 line
1.7.4.4
Joakim Tjernlund
Acked-byQuoted 6 lines
From: Tadashi Abe <[email protected]>
This is a trivial patch which removes unnecessary assignment of
chip->stateinput_chip(). It's duplicated.Signed-off-by Tadashi Abe <[email protected]>
Looks good for cfi_cmdset_0001.c:
Acked-by Joakim Tjernlund <[email protected]>