]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/net/e1000e_core: Let e1000e_can_receive() return a boolean
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 17:56:45 +0000 (18:56 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 31 Mar 2020 13:14:35 +0000 (21:14 +0800)
The e1000e_can_receive() function simply returns a boolean value.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c
hw/net/e1000e_core.h

index df957e0c1a09fd83b7f4fe051fece4338aaf55e1..d5676871fabc53d850903d4b7d6865c8872728e4 100644 (file)
@@ -967,7 +967,7 @@ e1000e_start_recv(E1000ECore *core)
     }
 }
 
-int
+bool
 e1000e_can_receive(E1000ECore *core)
 {
     int i;
index 49abb136dd845bf21bf9c2dc25b8c96a97fd82df..aee32f7e483d0c43af94991a66e09e2777c1fab2 100644 (file)
@@ -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