mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Remove unnecessary cast when using the address_space API
This commit was produced with the included Coccinelle script scripts/coccinelle/exec_rw_const. Two lines in hw/net/dp8393x.c that Coccinelle produced that were over 80 characters were re-wrapped by hand. Suggested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
4ef044cb14
commit
b7cbebf2b9
12 changed files with 54 additions and 46 deletions
|
@ -875,7 +875,7 @@ static inline int ida_read_next_idaw(CcwDataStream *cds)
|
|||
return -EINVAL; /* channel program check */
|
||||
}
|
||||
ret = address_space_rw(&address_space_memory, idaw_addr,
|
||||
MEMTXATTRS_UNSPECIFIED, (void *) &idaw.fmt2,
|
||||
MEMTXATTRS_UNSPECIFIED, &idaw.fmt2,
|
||||
sizeof(idaw.fmt2), false);
|
||||
cds->cda = be64_to_cpu(idaw.fmt2);
|
||||
} else {
|
||||
|
@ -884,7 +884,7 @@ static inline int ida_read_next_idaw(CcwDataStream *cds)
|
|||
return -EINVAL; /* channel program check */
|
||||
}
|
||||
ret = address_space_rw(&address_space_memory, idaw_addr,
|
||||
MEMTXATTRS_UNSPECIFIED, (void *) &idaw.fmt1,
|
||||
MEMTXATTRS_UNSPECIFIED, &idaw.fmt1,
|
||||
sizeof(idaw.fmt1), false);
|
||||
cds->cda = be64_to_cpu(idaw.fmt1);
|
||||
if (cds->cda & 0x80000000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue