[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 17/23] hw/net/rocker: Remove unused rocker_fp_ports
From: |
Michael Tokarev |
Subject: |
[PULL 17/23] hw/net/rocker: Remove unused rocker_fp_ports |
Date: |
Fri, 4 Oct 2024 19:03:25 +0300 |
From: "Dr. David Alan Gilbert" <dave@treblig.org>
rocker_fp_ports hasn't been used since it was added back in 2015.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
hw/net/rocker/rocker.c | 5 -----
hw/net/rocker/rocker.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c
index 1ab5852113..5e74acc969 100644
--- a/hw/net/rocker/rocker.c
+++ b/hw/net/rocker/rocker.c
@@ -134,11 +134,6 @@ RockerPortList *qmp_query_rocker_ports(const char *name,
Error **errp)
return list;
}
-uint32_t rocker_fp_ports(Rocker *r)
-{
- return r->fp_ports;
-}
-
static uint32_t rocker_get_pport_by_tx_ring(Rocker *r,
DescRing *ring)
{
diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h
index f85354d9d1..6e0962f47a 100644
--- a/hw/net/rocker/rocker.h
+++ b/hw/net/rocker/rocker.h
@@ -72,7 +72,6 @@ DECLARE_INSTANCE_CHECKER(Rocker, ROCKER,
TYPE_ROCKER)
Rocker *rocker_find(const char *name);
-uint32_t rocker_fp_ports(Rocker *r);
int rocker_event_link_changed(Rocker *r, uint32_t pport, bool link_up);
int rocker_event_mac_vlan_seen(Rocker *r, uint32_t pport, uint8_t *addr,
uint16_t vlan_id);
--
2.39.5
- Re: [PULL 10/23] linux-user: Remove unused handle_vm86_fault, (continued)
- [PULL 04/23] MAINTAINERS: remove gensyscalls.sh from the linux-user section, Michael Tokarev, 2024/10/04
- [PULL 09/23] hw/char: Remove unused serial_set_frequency, Michael Tokarev, 2024/10/04
- [PULL 11/23] hw: Remove unused fw_cfg_init_io, Michael Tokarev, 2024/10/04
- [PULL 12/23] ui/cursor: remove cursor_get_mono_image, Michael Tokarev, 2024/10/04
- [PULL 13/23] vhost: Remove unused vhost_dev_{load|save}_inflight, Michael Tokarev, 2024/10/04
- [PULL 14/23] remote: Remove unused remote_iohub_finalize, Michael Tokarev, 2024/10/04
- [PULL 15/23] replay: Remove unused replay_disable_events, Michael Tokarev, 2024/10/04
- [PULL 16/23] hw/pci: Remove unused pcie_chassis_find_slot, Michael Tokarev, 2024/10/04
- [PULL 17/23] hw/net/rocker: Remove unused rocker_fp_ports,
Michael Tokarev <=
- [PULL 18/23] block-backend: Remove deadcode, Michael Tokarev, 2024/10/04
- [PULL 19/23] tests/tcg/plugins: Remove remainder of the cris target, Michael Tokarev, 2024/10/04
- [PULL 20/23] hw/mips: Build fw_cfg.c once, Michael Tokarev, 2024/10/04
- [PULL 21/23] tests/functional: Fix hash validation, Michael Tokarev, 2024/10/04
- [PULL 23/23] MAINTAINERS: Add myself as maintainer of e500 machines, Michael Tokarev, 2024/10/04
- [PULL 22/23] docs/devel: Mention post_load hook restrictions where we document the hook, Michael Tokarev, 2024/10/04
- Re: [PULL 00/23] Trivial patches for 2024-10-04, Peter Maydell, 2024/10/04