[MTD] [NAND] Work around false compiler warning in CAFÉ driver
drivers/mtd/nand/cafe.c: In function 'cafe_nand_cmdfunc': drivers/mtd/nand/cafe.c:269: warning: 'irqs' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
7be26bfb2e
commit
2a7295b277
1 changed files with 2 additions and 2 deletions
|
@ -265,10 +265,10 @@ static void cafe_nand_cmdfunc(struct mtd_info *mtd, unsigned command,
|
|||
ndelay(100);
|
||||
|
||||
if (1) {
|
||||
int c = 500000;
|
||||
int c;
|
||||
uint32_t irqs;
|
||||
|
||||
while (c--) {
|
||||
for (c = 500000; c != 0; c--) {
|
||||
irqs = cafe_readl(cafe, NAND_IRQ);
|
||||
if (irqs & doneint)
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue