diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-03-05 18:56:50 +0100 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2020-03-31 21:14:35 +0800 |
commit | 767cc9a9c1daf9b6c8efbfef656e5ca12c853a45 (patch) | |
tree | 0c321c5e8b0c16c1195e53594b91f9292e4966e5 /net/can | |
parent | b8c4b67e3ec3918a40234e5c56221f780c7856fc (diff) | |
download | qemu-767cc9a9c1daf9b6c8efbfef656e5ca12c853a45.zip qemu-767cc9a9c1daf9b6c8efbfef656e5ca12c853a45.tar.gz qemu-767cc9a9c1daf9b6c8efbfef656e5ca12c853a45.tar.bz2 |
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>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/can_socketcan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/can/can_socketcan.c b/net/can/can_socketcan.c index 29bfacd..807f31f 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, |