mtd: sh_flctl: Simplify the hardware ecc page read/write
authorBastian Hecht <hechtb@googlemail.com>
Mon, 14 May 2012 12:14:44 +0000 (14:14 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Jul 2012 17:17:03 +0000 (18:17 +0100)
commit50ed399cc3fbe5e16de78f7b62a39b8280f9001b
treed67fe586b9a296a067831725ba3e4861c83e45cd
parentef4ce0bcb3c91375d2bdefd7a0e2fead95c97620
mtd: sh_flctl: Simplify the hardware ecc page read/write

As the equation mtd->writesize == eccsteps * eccsize holds, we can
simplify the code. The second loop of the 1st hunk is never entered,
so we delete it.

Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/sh_flctl.c