hw/net/rocker: Remove unused rocker_fp_ports
PATCH 1/1 hw/net/rocker: Remove unused rocker_fp_ports
From: "Dr. David Alan Gilbert" <[email protected]>
rocker_fp_ports hasn't been used since it was added back in 2015. Remove it.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
--- hw/net/rocker/rocker.c | 5 ----- hw/net/rocker/rocker.h | 1 - 2 files changed, 6 deletions(-)
hw/net/rocker/rocker.c +0 -5
@@ -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) {
hw/net/rocker/rocker.h +0 -1
@@ -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);
Signature · 1 line
2.46.0
Quoted 32 lines · On 19/09/2024 01.14, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
rocker_fp_portshasn't been used since it was added back in 2015. Remove it.Signed-off-by Dr. David Alan Gilbert <[email protected]>--- hw/net/rocker/rocker.c | 5 ----- hw/net/rocker/rocker.h | 1 - 2 files changed, 6 deletions(-)hw/net/rocker/rocker.c +0
-5@@ -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) {hw/net/rocker/rocker.h +0
-0
hw/net/rocker/rocker.h DECLARE_INSTANCE_CHECKER(Rocker, ROCKER, · line 77
Quoted 7 lines
hw/net/rocker/rocker.h +0
-1@@ -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);
Reviewed-by Thomas Huth <[email protected]>
Quoted 8 lines · On Thu, Sep 19, 2024 at 7:14 AM <[email protected]> wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
rocker_fp_portshasn't been used since it was added back in 2015. Remove it.Signed-off-by Dr. David Alan Gilbert <[email protected]>---
Queued.
Thanks