mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
Drop more useless casts from void * to pointer
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20221123133811.1398562-1-armbru@redhat.com>
This commit is contained in:
parent
ea3a008d2d
commit
3d558330ad
15 changed files with 24 additions and 28 deletions
|
@ -2472,7 +2472,7 @@ static size_t virtio_net_rsc_receive6(void *opq, NetClientState *nc,
|
|||
VirtioNetRscChain *chain;
|
||||
VirtioNetRscUnit unit;
|
||||
|
||||
chain = (VirtioNetRscChain *)opq;
|
||||
chain = opq;
|
||||
hdr_len = ((VirtIONet *)(chain->n))->guest_hdr_len;
|
||||
|
||||
if (size < (hdr_len + sizeof(struct eth_header) + sizeof(struct ip6_header)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue