[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL V2 04/14] hw/net/e1000e_core: Let e1000e_can_receive() return a bo
From: |
Jason Wang |
Subject: |
[PULL V2 04/14] hw/net/e1000e_core: Let e1000e_can_receive() return a boolean |
Date: |
Tue, 31 Mar 2020 21:21:29 +0800 |
From: Philippe Mathieu-Daudé <address@hidden>
The e1000e_can_receive() function simply returns a boolean value.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
---
hw/net/e1000e_core.c | 2 +-
hw/net/e1000e_core.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c
index df957e0..d567687 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 49abb13..aee32f7 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
--
2.5.0
- [PULL V2 00/14] Net patches, Jason Wang, 2020/03/31
- [PULL V2 01/14] hw/net/i82596: Correct command bitmask (CID 1419392), Jason Wang, 2020/03/31
- [PULL V2 02/14] hw/net/i82596.c: Avoid reading off end of buffer in i82596_receive(), Jason Wang, 2020/03/31
- [PULL V2 03/14] Fixed integer overflow in e1000e, Jason Wang, 2020/03/31
- [PULL V2 05/14] hw/net/smc91c111: Let smc91c111_can_receive() return a boolean, Jason Wang, 2020/03/31
- [PULL V2 04/14] hw/net/e1000e_core: Let e1000e_can_receive() return a boolean,
Jason Wang <=
- [PULL V2 06/14] hw/net/rtl8139: Simplify if/else statement, Jason Wang, 2020/03/31
- [PULL V2 07/14] hw/net/rtl8139: Update coding style to make checkpatch.pl happy, Jason Wang, 2020/03/31
- [PULL V2 09/14] hw/net/can: Make CanBusClientInfo::can_receive() return a boolean, Jason Wang, 2020/03/31
- [PULL V2 08/14] hw/net: Make NetCanReceive() return a boolean, Jason Wang, 2020/03/31
- [PULL V2 11/14] net/colo-compare.c: Expose "expired_scan_cycle" to users, Jason Wang, 2020/03/31
- [PULL V2 12/14] net: tulip: check frame size and r/w data length, Jason Wang, 2020/03/31
- [PULL V2 10/14] net/colo-compare.c: Expose "compare_timeout" to users, Jason Wang, 2020/03/31
- [PULL V2 14/14] qtest: add tulip test case, Jason Wang, 2020/03/31
- [PULL V2 13/14] hw/net/allwinner-sun8i-emac.c: Fix REG_ADDR_HIGH/LOW reads, Jason Wang, 2020/03/31
- Re: [PULL V2 00/14] Net patches, Peter Maydell, 2020/03/31