hw/net/rtl8139: Simplify if/else statement
commit2fa3d2d401b95036294361da52e4f3cd0f98155e
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 17:56:47 +0000 (5 18:56 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 31 Mar 2020 13:14:35 +0000 (31 21:14 +0800)
tree44e6661b5e2149d96e9e2bde3f8f9e14ebf37632
parent0002c3a696b2def7eda13d5fb722e45679959d22
hw/net/rtl8139: Simplify if/else statement

Rewrite:

      if (E) {
          return A;
      } else {
          return B;
      }
      /* EOF */
  }

as:

      if (E) {
          return A;
      }
      return B;
  }

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