hw/net/can: Make CanBusClientInfo::can_receive() return a boolean

The CanBusClientInfo::can_receive handler return whether the
device can or can not receive new frames. Make it obvious by
returning a boolean type.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
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:50 +01:00 committed by Jason Wang
parent b8c4b67e3e
commit 767cc9a9c1
5 changed files with 9 additions and 9 deletions

View file

@ -110,9 +110,9 @@ static void can_host_socketcan_read(void *opaque)
}
}
static int can_host_socketcan_can_receive(CanBusClientState *client)
static bool can_host_socketcan_can_receive(CanBusClientState *client)
{
return 1;
return true;
}
static ssize_t can_host_socketcan_receive(CanBusClientState *client,