]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/net/rtl8139: Update coding style to make checkpatch.pl happy
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 17:56:48 +0000 (18:56 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 31 Mar 2020 13:14:35 +0000 (21:14 +0800)
We will modify this code in the next commit. Clean it up
first to avoid checkpatch.pl errors.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/rtl8139.c

index ef3211537fdbb12b22da3d010829998a9ecddb48..be9a0af62911548c8fe80bec7876d3048b2f1db7 100644 (file)
@@ -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.