Skip to contentSkip to conversation

Missing breaks in nand_scan_tail ?

DISCUSSION Felix Radensky 2 participants 2 messages Jul 6, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

In function nand_scan_tail() in switch statement

switch (chip->ecc.mode) {

...

}

the final break is missing for NAND_ECC_HW and NAND_ECC_HW_SYNDROME cases.

Is this a bug or break is omitted intentionally ?

Thanks.

Felix.

#1 lore raw
Quoted 6 lines · Felix Radensky

Hi,

In function nand_scan_tail() in switch statement

switch (chip->ecc.mode) {

Quoted 7 lines

...

}

the final break is missing for NAND_ECC_HW and NAND_ECC_HW_SYNDROME cases.

Is this a bug or break is omitted intentionally ?

The final break for these modes is present at line: 2715. See below:

case NAND_ECC_HW_SYNDROME:
-
-

                if (mtd->writesize >= chip->ecc.size)
                        break;

-Vimal

Quoted 9 lines

Thanks.

Felix.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/