net: dsa: microchip: remove unneeded variable
Remove unneeded variable used to store return value. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
6cc74443a7
Коммит
86df8be67f
|
@ -302,7 +302,6 @@ int ksz_port_mdb_del(struct dsa_switch *ds, int port,
|
||||||
struct ksz_device *dev = ds->priv;
|
struct ksz_device *dev = ds->priv;
|
||||||
struct alu_struct alu;
|
struct alu_struct alu;
|
||||||
int index;
|
int index;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
for (index = 0; index < dev->num_statics; index++) {
|
for (index = 0; index < dev->num_statics; index++) {
|
||||||
if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) {
|
if (!dev->dev_ops->r_sta_mac_table(dev, index, &alu)) {
|
||||||
|
@ -324,7 +323,7 @@ int ksz_port_mdb_del(struct dsa_switch *ds, int port,
|
||||||
dev->dev_ops->w_sta_mac_table(dev, index, &alu);
|
dev->dev_ops->w_sta_mac_table(dev, index, &alu);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ksz_port_mdb_del);
|
EXPORT_SYMBOL_GPL(ksz_port_mdb_del);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче