[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL V2 07/14] hw/net/rtl8139: Update coding style to make checkpatch.p
From: |
Jason Wang |
Subject: |
[PULL V2 07/14] hw/net/rtl8139: Update coding style to make checkpatch.pl happy |
Date: |
Tue, 31 Mar 2020 21:21:32 +0800 |
From: Philippe Mathieu-Daudé <address@hidden>
We will modify this code in the next commit. Clean it up
first to avoid checkpatch.pl errors.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Alistair Francis <address@hidden>
Reviewed-by: Cédric Le Goater <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
---
hw/net/rtl8139.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index ef32115..be9a0af 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -799,10 +799,12 @@ static int rtl8139_can_receive(NetClientState *nc)
int avail;
/* Receive (drop) packets if card is disabled. */
- if (!s->clock_enabled)
- return 1;
- if (!rtl8139_receiver_enabled(s))
- return 1;
+ if (!s->clock_enabled) {
+ return 1;
+ }
+ if (!rtl8139_receiver_enabled(s)) {
+ return 1;
+ }
if (rtl8139_cp_receiver_enabled(s) && rtl8139_cp_rx_valid(s)) {
/* ??? Flow control not implemented in c+ mode.
--
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, 2020/03/31
- [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 <=
- [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