From 767cc9a9c1daf9b6c8efbfef656e5ca12c853a45 Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Thu, 5 Mar 2020 18:56:50 +0100 Subject: 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é Reviewed-by: Alistair Francis Reviewed-by: Cédric Le Goater Signed-off-by: Jason Wang --- net/can/can_socketcan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/can') diff --git a/net/can/can_socketcan.c b/net/can/can_socketcan.c index 29bfacd4f8..807f31fcde 100644 --- a/net/can/can_socketcan.c +++ b/net/can/can_socketcan.c @@ -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, -- cgit v1.2.3-55-g7522