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>
This commit is contained in:

committed by
David S. Miller

parent
0b3d8e087b
commit
d458cdf712
@@ -640,10 +640,10 @@ static void catc_set_multicast_list(struct net_device *netdev)
|
||||
{
|
||||
struct catc *catc = netdev_priv(netdev);
|
||||
struct netdev_hw_addr *ha;
|
||||
u8 broadcast[6];
|
||||
u8 broadcast[ETH_ALEN];
|
||||
u8 rx = RxEnable | RxPolarity | RxMultiCast;
|
||||
|
||||
memset(broadcast, 0xff, 6);
|
||||
memset(broadcast, 0xff, ETH_ALEN);
|
||||
memset(catc->multicast, 0, 64);
|
||||
|
||||
catc_multicast(broadcast, catc->multicast);
|
||||
@@ -778,7 +778,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
|
||||
struct usb_device *usbdev = interface_to_usbdev(intf);
|
||||
struct net_device *netdev;
|
||||
struct catc *catc;
|
||||
u8 broadcast[6];
|
||||
u8 broadcast[ETH_ALEN];
|
||||
int i, pktsz;
|
||||
|
||||
if (usb_set_interface(usbdev,
|
||||
@@ -882,7 +882,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
|
||||
|
||||
dev_dbg(dev, "Filling the multicast list.\n");
|
||||
|
||||
memset(broadcast, 0xff, 6);
|
||||
memset(broadcast, 0xff, ETH_ALEN);
|
||||
catc_multicast(broadcast, catc->multicast);
|
||||
catc_multicast(netdev->dev_addr, catc->multicast);
|
||||
catc_write_mem(catc, 0xfa80, catc->multicast, 64);
|
||||
|
Reference in New Issue
Block a user