hw/net: Make NetCanReceive() return a boolean

The NetCanReceive handler return whether the device can or
can not receive new packets. Make it obvious by returning
a boolean type.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2020-03-05 18:56:49 +01:00 committed by Jason Wang
parent 3317db7439
commit b8c4b67e3e
20 changed files with 45 additions and 48 deletions

View file

@ -667,7 +667,7 @@ static void smc91c111_writefn(void *opaque, hwaddr addr,
}
}
static int smc91c111_can_receive_nc(NetClientState *nc)
static bool smc91c111_can_receive_nc(NetClientState *nc)
{
smc91c111_state *s = qemu_get_nic_opaque(nc);