From d94e3029e4e9d14907fd6b283218defb4d319f5a Mon Sep 17 00:00:00 2001 From: Amit Kumar <amit.kumar@genexis.eu> Date: Mon, 15 Jul 2024 14:29:19 +0530 Subject: [PATCH] libethernet: removed unwanted code in rmon stats --- bcm/bcm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bcm/bcm.c b/bcm/bcm.c index 83aff1e..f4ebd6b 100644 --- a/bcm/bcm.c +++ b/bcm/bcm.c @@ -417,19 +417,13 @@ int bcm_eth_get_stats(const char *ifname, struct eth_stats *s) int bcm_eth_get_rmon_stats(const char *ifname, struct eth_rmon_stats *rmon) { struct ethswctl_data data; - int unit = -1; - int port = -1; int ret; if (!rmon) return -1; memset(&data, 0, sizeof(struct ethswctl_data)); - ret = bcm_eth_get_unit_port(ifname, &unit, &port); - if (ret) - return -1; - //data.op = ETHSWDUMPMIB; data.op = ETHSWEMACGET; strncpy(data.ifname, ifname, OBJIFNAMSIZ); data.addressing_flag |= (ETHSW_ADDRESSING_DEV); -- GitLab