OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284b08f
)
Fix Sparse warning about invalid access past the end of 'mode'
author
Blue Swirl
<blauwirbel@gmail.com>
Mon, 21 Sep 2009 20:21:53 +0000
(20:21 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Mon, 21 Sep 2009 20:21:53 +0000
(20:21 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/omap2.c
patch
|
blob
|
history
diff --git
a/hw/omap2.c
b/hw/omap2.c
index
a845265
..
a3fa89d
100644
(file)
--- 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__);
}