diff mbox series

[10/12] mvpp2: Use ether_broadcast_addr instead of a local array

Message ID 8e2cec37fd78de62c6e5f683528e8554d1e823b0.1522479609.git.joe@perches.com
State Changes Requested, archived
Delegated to: David Miller
Headers show
Series Ethernet: Add and use ether_<type>_addr globals | expand

Commit Message

Joe Perches March 31, 2018, 7:05 a.m. UTC
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 mbox series

Patch

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;