From: Blue Swirl Date: Mon, 21 Sep 2009 20:21:53 +0000 (+0000) Subject: Fix Sparse warning about invalid access past the end of 'mode' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=16d55035d71aae0bdde350c70c198a45f1ac4fcd;p=qemu.git Fix Sparse warning about invalid access past the end of 'mode' Signed-off-by: Blue Swirl --- diff --git a/hw/omap2.c b/hw/omap2.c index a845265c51..a3fa89d3ee 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__); }