diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-21 20:21:53 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-21 20:21:53 +0000 |
commit | 16d55035d71aae0bdde350c70c198a45f1ac4fcd (patch) | |
tree | e9ad2c30ee3b367ef845d0cd2864cdcf3ffa6b48 | |
parent | 284b08f174967179233abe8e36c5859774e4b6a3 (diff) |
Fix Sparse warning about invalid access past the end of 'mode'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | hw/omap2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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__); } |