Message ID | 20240611135434.3180973-9-ms@dev.tdt.de (mailing list archive) |
---|---|
State | Accepted |
Commit | c927b6e47b5cc7324217bf5fe7e6ccd0633971a0 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: dsa: lantiq_gswip: code improvements | expand |
On 2024-06-11 15:54, Martin Schiller wrote: > From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > > The addr variable in gswip_port_fdb_dump() stores a mac address. Use > ETH_ALEN to make this consistent across other drivers. > > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > Reviewed-by: Vladimir Oltean <olteanv@gmail.com> > Acked-by: Hauke Mehrtens <hauke@hauke-m.de> > --- > drivers/net/dsa/lantiq_gswip.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/dsa/lantiq_gswip.c > b/drivers/net/dsa/lantiq_gswip.c > index 58c069f964dd..525a62a21601 100644 > --- a/drivers/net/dsa/lantiq_gswip.c > +++ b/drivers/net/dsa/lantiq_gswip.c > @@ -1413,7 +1413,7 @@ static int gswip_port_fdb_dump(struct dsa_switch > *ds, int port, > { > struct gswip_priv *priv = ds->priv; > struct gswip_pce_table_entry mac_bridge = {0,}; > - unsigned char addr[6]; > + unsigned char addr[ETH_ALEN]; > int i; > int err; Signed-off-by: Martin Schiller <ms@dev.tdt.de>
diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 58c069f964dd..525a62a21601 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1413,7 +1413,7 @@ static int gswip_port_fdb_dump(struct dsa_switch *ds, int port, { struct gswip_priv *priv = ds->priv; struct gswip_pce_table_entry mac_bridge = {0,}; - unsigned char addr[6]; + unsigned char addr[ETH_ALEN]; int i; int err;