ppc440_uc: Fix a copy/paste error
Missed in 3c409c1927
, hopefully reported by Coverity.
Fixes: Coverity CID 1393788 (Copy-paste error)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
eb76243c9d
commit
7aeb1e5100
|
@ -935,7 +935,7 @@ static void dcr_write_dma(void *opaque, int dcrn, uint32_t val)
|
|||
if (wptr) {
|
||||
cpu_physical_memory_unmap(wptr, wlen, 1, didx);
|
||||
}
|
||||
if (wptr) {
|
||||
if (rptr) {
|
||||
cpu_physical_memory_unmap(rptr, rlen, 0, sidx);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue