Commit 5c8d2607756a63ddf5b2f2dd368851b8febe4e72
Committed by
David Woodhouse
1 parent
100f2341e3
Exists in
master
and in
20 other branches
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>
Showing 3 changed files with 0 additions and 3 deletions Side-by-side Diff
drivers/mtd/chips/cfi_cmdset_0001.c
... | ... | @@ -994,7 +994,6 @@ |
994 | 994 | |
995 | 995 | switch(chip->oldstate) { |
996 | 996 | case FL_ERASING: |
997 | - chip->state = chip->oldstate; | |
998 | 997 | /* What if one interleaved chip has finished and the |
999 | 998 | other hasn't? The old code would leave the finished |
1000 | 999 | one in READY mode. That's bad, and caused -EROFS |
drivers/mtd/chips/cfi_cmdset_0002.c
drivers/mtd/lpddr/lpddr_cmds.c