From: Jason Wang <jasowang@redhat.com>
To: qemu-devel@nongnu.org, peter.maydell@linaro.org
Cc: "Jason Wang" <jasowang@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
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 [thread overview]
Message-ID: <1585660899-11228-5-git-send-email-jasowang@redhat.com> (raw)
In-Reply-To: <1585660899-11228-1-git-send-email-jasowang@redhat.com>
From: Philippe Mathieu-Daudé <philmd@redhat.com>
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 | 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
next prev parent reply other threads:[~2020-03-31 13:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-31 13:21 [PULL V2 00/14] Net patches Jason Wang
2020-03-31 13:21 ` [PULL V2 01/14] hw/net/i82596: Correct command bitmask (CID 1419392) Jason Wang
2020-03-31 13:21 ` [PULL V2 02/14] hw/net/i82596.c: Avoid reading off end of buffer in i82596_receive() Jason Wang
2020-03-31 13:21 ` [PULL V2 03/14] Fixed integer overflow in e1000e Jason Wang
2020-03-31 13:21 ` Jason Wang [this message]
2020-03-31 13:21 ` [PULL V2 05/14] hw/net/smc91c111: Let smc91c111_can_receive() return a boolean Jason Wang
2020-03-31 13:21 ` [PULL V2 06/14] hw/net/rtl8139: Simplify if/else statement Jason Wang
2020-03-31 13:21 ` [PULL V2 07/14] hw/net/rtl8139: Update coding style to make checkpatch.pl happy Jason Wang
2020-03-31 13:21 ` [PULL V2 08/14] hw/net: Make NetCanReceive() return a boolean Jason Wang
2020-03-31 13:21 ` [PULL V2 09/14] hw/net/can: Make CanBusClientInfo::can_receive() " Jason Wang
2020-03-31 13:21 ` [PULL V2 10/14] net/colo-compare.c: Expose "compare_timeout" to users Jason Wang
2020-03-31 13:21 ` [PULL V2 11/14] net/colo-compare.c: Expose "expired_scan_cycle" " Jason Wang
2020-03-31 13:21 ` [PULL V2 12/14] net: tulip: check frame size and r/w data length Jason Wang
2020-03-31 13:21 ` [PULL V2 13/14] hw/net/allwinner-sun8i-emac.c: Fix REG_ADDR_HIGH/LOW reads Jason Wang
2020-03-31 13:21 ` [PULL V2 14/14] qtest: add tulip test case Jason Wang
2020-03-31 14:36 ` [PULL V2 00/14] Net patches Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1585660899-11228-5-git-send-email-jasowang@redhat.com \
--to=jasowang@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).