aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr
diff options
context:
space:
mode:
authorTadashi Abe <tabe@mvista.com>2011-05-19 03:17:50 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-05-24 21:11:13 -0400
commit5c8d2607756a63ddf5b2f2dd368851b8febe4e72 (patch)
tree1e0327bc9bf9108bd93c92b68b0f4d1b3a114346 /drivers/mtd/lpddr
parent100f2341e305f98de3aa12fb472771ab029cbda7 (diff)
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 <tabe@mvista.com> Acked-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/lpddr')
-rw-r--r--drivers/mtd/lpddr/lpddr_cmds.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/lpddr/lpddr_cmds.c b/drivers/mtd/lpddr/lpddr_cmds.c
index 16dcd1c76baf..65655dd59e1f 100644
--- a/drivers/mtd/lpddr/lpddr_cmds.c
+++ b/drivers/mtd/lpddr/lpddr_cmds.c
@@ -378,7 +378,6 @@ static void put_chip(struct map_info *map, struct flchip *chip)
378 378
379 switch (chip->oldstate) { 379 switch (chip->oldstate) {
380 case FL_ERASING: 380 case FL_ERASING:
381 chip->state = chip->oldstate;
382 map_write(map, CMD(LPDDR_RESUME), 381 map_write(map, CMD(LPDDR_RESUME),
383 map->pfow_base + PFOW_COMMAND_CODE); 382 map->pfow_base + PFOW_COMMAND_CODE);
384 map_write(map, CMD(LPDDR_START_EXECUTION), 383 map_write(map, CMD(LPDDR_START_EXECUTION),