summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/ioctl.c
diff options
context:
space:
mode:
authorCharles Clément2010-05-15 04:37:32 +0200
committerGreg Kroah-Hartman2010-05-18 01:26:42 +0200
commit078b078f662a8e21d5a6fee81007b5337ab962cd (patch)
tree8d33e906f48d033281c649a0696734a54fc25597 /drivers/staging/vt6655/ioctl.c
parentStaging: Use kcalloc or kzalloc (diff)
downloadkernel-qcow2-linux-078b078f662a8e21d5a6fee81007b5337ab962cd.tar.gz
kernel-qcow2-linux-078b078f662a8e21d5a6fee81007b5337ab962cd.tar.xz
kernel-qcow2-linux-078b078f662a8e21d5a6fee81007b5337ab962cd.zip
Staging: vt6655: use ETH_ALEN macro instead of custom one
Replaced custom ethernet address length definition U_ETHER_ADDR_LEN by ETH_ALEN from <linux/if_ether.h>. Signed-off-by: Charles Clément <caratorn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/ioctl.c')
-rw-r--r--drivers/staging/vt6655/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c
index e36cd30f642a..404287c60252 100644
--- a/drivers/staging/vt6655/ioctl.c
+++ b/drivers/staging/vt6655/ioctl.c
@@ -497,7 +497,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) {
};
if (sValue.dwValue == 1) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "up wpadev\n");
- memcpy(pDevice->wpadev->dev_addr, pDevice->dev->dev_addr, U_ETHER_ADDR_LEN);
+ memcpy(pDevice->wpadev->dev_addr, pDevice->dev->dev_addr, ETH_ALEN);
pDevice->bWPADEVUp = TRUE;
}
else {