firewire: Fix invalid cast
Signed-off-by: Jaroslaw Pelczar <[email protected]> Change-Id: I47faf4d2a54602e3c842c52507ecf7cba5c66cf5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1782 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
3ac18ca766
commit
0cc862ea3b
@@ -705,7 +705,7 @@ fwohci_init(struct fwohci_softc *sc)
|
||||
if (sc->fc.crom_sid_Area < B_OK)
|
||||
return B_NO_MEMORY;
|
||||
sc->sid_buf = (uint32_t*)(sc->sid_dma.v_addr = buf_virt);
|
||||
sc->sid_dma.bus_addr = (bus_addr_t)buf_phy;
|
||||
sc->sid_dma.bus_addr = (bus_addr_t)(addr_t)buf_phy;
|
||||
sc->fc.config_rom
|
||||
= (uint32_t*)(sc->crom_dma.v_addr = (char*)buf_virt + OHCI_SIDSIZE);
|
||||
sc->crom_dma.bus_addr = (bus_addr_t)buf_phy + OHCI_SIDSIZE;
|
||||
|
||||
Reference in New Issue
Block a user