Message ID | 1585307647-24456-8-git-send-email-jasowang@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,01/13] hw/net/i82596: Correct command bitmask (CID 1419392) | expand |
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.