projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfee3e8
)
pxa2xx: remove useless checks
author
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000
(
05:53
+0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:15 +0000
(
05:53
+0000)
Remove checks which were made useless by r5849,
8da3ff180974732fc4272cb4433fef85c1822961
.
This also avoids a warning with GCC flag -Wtype-limits.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pxa2xx.c
patch
|
blob
|
history
diff --git
a/hw/pxa2xx.c
b/hw/pxa2xx.c
index 26b9205dbe1a76b53f644b9cbf72863f5e8e77ac..faa3d9589aced77167e0b5373a55b28eccb55f1a 100644
(file)
--- a/
hw/pxa2xx.c
+++ b/
hw/pxa2xx.c
@@
-125,7
+125,7
@@
static void pxa2xx_pm_write(void *opaque, target_phys_addr_t addr,
break;
default: /* Read-write registers */
- if (
addr >= PMCR && addr <= PCMD31 &&
!(addr & 3)) {
+ if (!(addr & 3)) {
s->pm_regs[addr >> 2] = value;
break;
}