]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit504b3d22e26b7f0ab25efdaed13210f8ad2d6f43
treed67fe586b9a296a067831725ba3e4861c83e45cd
parentd24866ba5e07ef8fa338f58285b394c840abff30
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