mirror of https://gitee.com/openkylin/qemu.git
pxa2xx: remove useless checks
Remove checks which were made useless by r5849,
8da3ff1809
.
This also avoids a warning with GCC flag -Wtype-limits.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
45416789e8
commit
603ff77610
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue