]> git.dujemihanovic.xyz Git - u-boot.git/commit
zynq: mtd: nand: remove superfluous if
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 27 Dec 2020 10:28:12 +0000 (11:28 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Jan 2021 10:54:53 +0000 (11:54 +0100)
commit389b45d6b05784c0043bac859666b98a5f704402
treec71a241a920666202ebb240788ea2adecddbbe36
parent0e3a7aa7a9cbf5764cae8ffbda09985c677d4476
zynq: mtd: nand: remove superfluous if

This sort of code does not make much sense:

    if (ondie_ecc_enabled) {
        if (ondie_ecc_enabled) {

Remove the inner if.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mtd/nand/raw/zynq_nand.c