summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/ioctl.c
diff options
context:
space:
mode:
authorAndres More <more.andres@gmail.com>2010-04-13 21:54:48 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:35:56 -0700
commit9a0e756c5280750c23bd44d2b855a1f5442ea7b4 (patch)
treed1c3250322f96bd8772401f1989ae1d1d57fa3da /drivers/staging/vt6656/ioctl.c
parent26e5b65b0794a1970ab09b65ef39beb9058ec952 (diff)
downloadop-kernel-dev-9a0e756c5280750c23bd44d2b855a1f5442ea7b4.zip
op-kernel-dev-9a0e756c5280750c23bd44d2b855a1f5442ea7b4.tar.gz
Staging: vt6656: incorporated ETH_ALEN macro instead of custom one
Replaced custom U_ETHER_ADDR_LEN by ETH_ALEN from <linux/if_ether.h>. Resolved checkpatch findings on the changed lines, mostly indentation. Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6656/ioctl.c')
-rw-r--r--drivers/staging/vt6656/ioctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/ioctl.c b/drivers/staging/vt6656/ioctl.c
index 6f33005..d7a78f2 100644
--- a/drivers/staging/vt6656/ioctl.c
+++ b/drivers/staging/vt6656/ioctl.c
@@ -480,7 +480,9 @@ 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 {
OpenPOWER on IntegriCloud