]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/rtl8139.c
maint: avoid useless "if (foo) free(foo)" pattern
[mirror_qemu.git] / hw / net / rtl8139.c
index 2040618afab5d68c28bf8359453327278a8be266..b0d6c40f585d90897cde960b5c4ef659de4d236b 100644 (file)
@@ -3391,10 +3391,8 @@ static void pci_rtl8139_uninit(PCIDevice *dev)
 {
     RTL8139State *s = RTL8139(dev);
 
-    if (s->cplus_txbuffer) {
-        g_free(s->cplus_txbuffer);
-        s->cplus_txbuffer = NULL;
-    }
+    g_free(s->cplus_txbuffer);
+    s->cplus_txbuffer = NULL;
     timer_del(s->timer);
     timer_free(s->timer);
     qemu_del_nic(s->nic);