diff --git a/bcm/bcm.c b/bcm/bcm.c index 83aff1e789473c3c5151a5266f224bd2669753be..f4ebd6b71d0d136b2cc449653691eb7b25bce954 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);