]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: denali: remove unnecessary writes to ECC_CORRECTION
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Mar 2017 20:07:24 +0000 (05:07 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 28 Mar 2017 12:24:46 +0000 (14:24 +0200)
commitf56920194e5be4767f8cac7bfab02e07e43fbd59
tree2e47dc253a4ee1a52b5caae1e76a39d0c5370026
parenteefdb5c91c83c3dd8d3fa30a92b635325b822b31
mtd: nand: denali: remove unnecessary writes to ECC_CORRECTION

Because SUPPORT_15BITECC is defined, the following is dead code:

  #elif SUPPORT_8BITECC
          iowrite32(8, denali->flash_reg + ECC_CORRECTION);
  #endif

Such ifdefs are useless and unacceptable coding style.

These writes are not needed in the first place since ECC_CORRECTION
is set up by the nand_init() function.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c
drivers/mtd/nand/denali.h