forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/freescale/dpaa/dpaa_eth_sysfs.c
....@@ -131,11 +131,9 @@
131131 {
132132 struct dpaa_priv *priv = netdev_priv(to_net_dev(dev));
133133 ssize_t bytes = 0;
134
- int i = 0;
135134
136
- for (i = 0; i < DPAA_BPS_NUM; i++)
137
- bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n",
138
- priv->dpaa_bps[i]->bpid);
135
+ bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n",
136
+ priv->dpaa_bp->bpid);
139137
140138 return bytes;
141139 }