Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2a7295b277539728a748fba00db388f3dc49c0d0
Commit:     2a7295b277539728a748fba00db388f3dc49c0d0
Parent:     7be26bfb2ef3b3a768232d11d9aad9222b053d0a
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 17 16:02:11 2007 -0800
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Sun Feb 18 16:45:05 2007 +0000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 drivers/mtd/nand/cafe.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/cafe.c b/drivers/mtd/nand/cafe.c
index 1e877cb..5ec82be 100644
--- a/drivers/mtd/nand/cafe.c
+++ b/drivers/mtd/nand/cafe.c
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to