hw/net/can: Make CanBusClientInfo::can_receive() return a boolean
commit767cc9a9c1daf9b6c8efbfef656e5ca12c853a45
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 17:56:50 +0000 (5 18:56 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 31 Mar 2020 13:14:35 +0000 (31 21:14 +0800)
tree0c321c5e8b0c16c1195e53594b91f9292e4966e5
parentb8c4b67e3ec3918a40234e5c56221f780c7856fc
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>
hw/net/allwinner-sun8i-emac.c
hw/net/can/can_sja1000.c
hw/net/can/can_sja1000.h
include/net/can_emu.h
net/can/can_socketcan.c