Messages in this thread Patch in this message | | | From | Joe Perches <> | Subject | [PATCH 10/12] mvpp2: Use ether_broadcast_addr instead of a local array | Date | Sat, 31 Mar 2018 00:05:25 -0700 |
| |
Save a small bit of object code by using the new global instead.
Signed-off-by: Joe Perches <joe@perches.com> --- drivers/net/ethernet/marvell/mvpp2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 7fc1bbf51c44..a848b92f5961 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -7345,11 +7345,9 @@ static int mvpp2_open(struct net_device *dev) { struct mvpp2_port *port = netdev_priv(dev); struct mvpp2 *priv = port->priv; - unsigned char mac_bcast[ETH_ALEN] = { - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; int err; - err = mvpp2_prs_mac_da_accept(port, mac_bcast, true); + err = mvpp2_prs_mac_da_accept(port, ether_broadcast_addr, true); if (err) { netdev_err(dev, "mvpp2_prs_mac_da_accept BC failed\n"); return err; -- 2.15.0
| |