From: Philippe Mathieu-Daudé Date: Thu, 5 Mar 2020 17:56:48 +0000 (+0100) Subject: hw/net/rtl8139: Update coding style to make checkpatch.pl happy X-Git-Tag: qemu-xen-4.14.0~41^2~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3317db743972f665e2753c75703538d51241350a;p=qemu-xen.git hw/net/rtl8139: Update coding style to make checkpatch.pl happy We will modify this code in the next commit. Clean it up first to avoid checkpatch.pl errors. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Reviewed-by: Cédric Le Goater Signed-off-by: Jason Wang --- diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index ef3211537f..be9a0af629 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.