qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 16d5503] Fix Sparse warning about invalid access


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 16d5503] Fix Sparse warning about invalid access past the endof 'mode'
Date: Mon, 21 Sep 2009 20:25:14 -0000

From: Blue Swirl <address@hidden>

Signed-off-by: Blue Swirl <address@hidden>

diff --git a/hw/omap2.c b/hw/omap2.c
index a845265..a3fa89d 100644
--- a/hw/omap2.c
+++ b/hw/omap2.c
@@ -3007,7 +3007,7 @@ static void omap_prcm_apll_update(struct omap_prcm_s *s)
     s->apll_lock[1] = (mode[1] == 3);
     /* TODO: update clocks */
 
-    if (mode[0] == 1 || mode[0] == 2 || mode[1] == 1 || mode[2] == 2)
+    if (mode[0] == 1 || mode[0] == 2 || mode[1] == 1 || mode[1] == 2)
         fprintf(stderr, "%s: bad EN_54M_PLL or bad EN_96M_PLL\n",
                         __FUNCTION__);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]