aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fddi/skfp
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-01 22:04:40 -0400
committerDavid S. Miller <davem@davemloft.net>2013-10-02 17:04:45 -0400
commitd458cdf712e0c671e8e819abb16ecd6e44f9daec (patch)
treeff93ce90fee219f2690a4f51f985815422664b7a /drivers/net/fddi/skfp
parent0b3d8e087bbee2a4e3f479d538a7edd3f1d2950c (diff)
net:drivers/net: Miscellaneous conversions to ETH_ALEN
Convert the memset/memcpy uses of 6 to ETH_ALEN where appropriate. Also convert some struct definitions and u8 array declarations of [6] to ETH_ALEN. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi/skfp')
-rw-r--r--drivers/net/fddi/skfp/fplustm.c2
-rw-r--r--drivers/net/fddi/skfp/skfddi.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/fddi/skfp/fplustm.c b/drivers/net/fddi/skfp/fplustm.c
index a20ed1a98099..f83993590174 100644
--- a/drivers/net/fddi/skfp/fplustm.c
+++ b/drivers/net/fddi/skfp/fplustm.c
@@ -453,7 +453,7 @@ static void directed_beacon(struct s_smc *smc)
453 */ 453 */
454 * (char *) a = (char) ((long)DBEACON_INFO<<24L) ; 454 * (char *) a = (char) ((long)DBEACON_INFO<<24L) ;
455 a[1] = 0 ; 455 a[1] = 0 ;
456 memcpy((char *)a+1,(char *) &smc->mib.m[MAC0].fddiMACUpstreamNbr,6) ; 456 memcpy((char *)a+1, (char *) &smc->mib.m[MAC0].fddiMACUpstreamNbr, ETH_ALEN);
457 457
458 CHECK_NPP() ; 458 CHECK_NPP() ;
459 /* set memory address reg for writes */ 459 /* set memory address reg for writes */
diff --git a/drivers/net/fddi/skfp/skfddi.c b/drivers/net/fddi/skfp/skfddi.c
index f5d7305a5784..713d303a06a9 100644
--- a/drivers/net/fddi/skfp/skfddi.c
+++ b/drivers/net/fddi/skfp/skfddi.c
@@ -436,7 +436,7 @@ static int skfp_driver_init(struct net_device *dev)
436 } 436 }
437 read_address(smc, NULL); 437 read_address(smc, NULL);
438 pr_debug("HW-Addr: %pMF\n", smc->hw.fddi_canon_addr.a); 438 pr_debug("HW-Addr: %pMF\n", smc->hw.fddi_canon_addr.a);
439 memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, 6); 439 memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, ETH_ALEN);
440 440
441 smt_reset_defaults(smc, 0); 441 smt_reset_defaults(smc, 0);
442 442
@@ -503,7 +503,7 @@ static int skfp_open(struct net_device *dev)
503 * address. 503 * address.
504 */ 504 */
505 read_address(smc, NULL); 505 read_address(smc, NULL);
506 memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, 6); 506 memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, ETH_ALEN);
507 507
508 init_smt(smc, NULL); 508 init_smt(smc, NULL);
509 smt_online(smc, 1); 509 smt_online(smc, 1);
@@ -1213,7 +1213,7 @@ static void CheckSourceAddress(unsigned char *frame, unsigned char *hw_addr)
1213 if ((unsigned short) frame[1 + 10] != 0) 1213 if ((unsigned short) frame[1 + 10] != 0)
1214 return; 1214 return;
1215 SRBit = frame[1 + 6] & 0x01; 1215 SRBit = frame[1 + 6] & 0x01;
1216 memcpy(&frame[1 + 6], hw_addr, 6); 1216 memcpy(&frame[1 + 6], hw_addr, ETH_ALEN);
1217 frame[8] |= SRBit; 1217 frame[8] |= SRBit;
1218} // CheckSourceAddress 1218} // CheckSourceAddress
1219 1219