]> Git Repo - qemu.git/blobdiff - hw/net/etraxfs_eth.c
spapr: Merge sPAPREnvironment into sPAPRMachineState
[qemu.git] / hw / net / etraxfs_eth.c
index 6a3c86db487eb9a6c4a74e0c27df9631b4d08a77..4773dea92706fd66f5502d3a37a72b65d583befa 100644 (file)
@@ -581,24 +581,11 @@ static const MemoryRegionOps eth_ops = {
     }
 };
 
-static void eth_cleanup(NetClientState *nc)
-{
-    ETRAXFSEthState *eth = qemu_get_nic_opaque(nc);
-
-    /* Disconnect the client.  */
-    eth->dma_out->client.push = NULL;
-    eth->dma_out->client.opaque = NULL;
-    eth->dma_in->client.opaque = NULL;
-    eth->dma_in->client.pull = NULL;
-        g_free(eth);
-}
-
 static NetClientInfo net_etraxfs_info = {
     .type = NET_CLIENT_OPTIONS_KIND_NIC,
     .size = sizeof(NICState),
     .can_receive = eth_can_receive,
     .receive = eth_receive,
-    .cleanup = eth_cleanup,
     .link_status_changed = eth_set_link,
 };
 
This page took 0.024532 seconds and 4 git commands to generate.