]> git.ipfire.org Git - thirdparty/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, 2 Feb 2021 11:31:28 +0000 (12:31 +0100)
commitff84c884273220a5d1beda4b5b6baae4e0ae73bc
treeb1436ed524cfa8ab1265759210384d0afce82850
parent6a7cb9dd050fff8f3936d8cb85dfafbd4c005701
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>
State: upstream (389b45d6b05784c0043bac859666b98a5f704402)
drivers/mtd/nand/raw/zynq_nand.c