From: Philippe Mathieu-Daudé Date: Thu, 5 Mar 2020 17:56:45 +0000 (+0100) Subject: hw/net/e1000e_core: Let e1000e_can_receive() return a boolean X-Git-Tag: v5.0.0-rc1~2^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=205ce5670f8ec38693ab945493e4fcc155b25cec;p=thirdparty%2Fqemu.git hw/net/e1000e_core: Let e1000e_can_receive() return a boolean The e1000e_can_receive() function simply returns a boolean value. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Reviewed-by: Paolo Bonzini Signed-off-by: Jason Wang --- diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c index df957e0c1a0..d5676871fab 100644 --- a/hw/net/e1000e_core.c +++ b/hw/net/e1000e_core.c @@ -967,7 +967,7 @@ e1000e_start_recv(E1000ECore *core) } } -int +bool e1000e_can_receive(E1000ECore *core) { int i; diff --git a/hw/net/e1000e_core.h b/hw/net/e1000e_core.h index 49abb136dd8..aee32f7e483 100644 --- a/hw/net/e1000e_core.h +++ b/hw/net/e1000e_core.h @@ -143,7 +143,7 @@ e1000e_core_set_link_status(E1000ECore *core); void e1000e_core_pci_uninit(E1000ECore *core); -int +bool e1000e_can_receive(E1000ECore *core); ssize_t