]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/sun/cassini.c
net:drivers/net: Miscellaneous conversions to ETH_ALEN
[karo-tx-linux.git] / drivers / net / ethernet / sun / cassini.c
index 759441b29e535b4c7b1c0f94e6f7520fc628fbdd..a72ecc42885d0ba28acb2d3c74e04678ee74e93a 100644 (file)
@@ -3354,7 +3354,7 @@ use_random_mac_addr:
 #if defined(CONFIG_SPARC)
        addr = of_get_property(cp->of_node, "local-mac-address", NULL);
        if (addr != NULL) {
-               memcpy(dev_addr, addr, 6);
+               memcpy(dev_addr, addr, ETH_ALEN);
                goto done;
        }
 #endif