From: Malcolm Priestley Date: Fri, 23 May 2014 17:00:08 +0000 (+0100) Subject: staging: vt6656: MACvWriteBSSIDAddress remove pbyData X-Git-Tag: next-20140530~19^2~320 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=08a150c5061d39977de64da19734e472f3aaf6a1;p=karo-tx-linux.git staging: vt6656: MACvWriteBSSIDAddress remove pbyData Remove pbyData and point directly to pbyEtherAddr The size is always ETH_ALEN (6) Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/mac.c b/drivers/staging/vt6656/mac.c index a195703a69e4..31f54fbcd4ac 100644 --- a/drivers/staging/vt6656/mac.c +++ b/drivers/staging/vt6656/mac.c @@ -216,21 +216,12 @@ void MACvWriteWord(struct vnt_private *priv, u8 reg_ofs, u16 word) void MACvWriteBSSIDAddress(struct vnt_private *pDevice, u8 *pbyEtherAddr) { - u8 pbyData[6]; - - pbyData[0] = *((u8 *)pbyEtherAddr); - pbyData[1] = *((u8 *)pbyEtherAddr+1); - pbyData[2] = *((u8 *)pbyEtherAddr+2); - pbyData[3] = *((u8 *)pbyEtherAddr+3); - pbyData[4] = *((u8 *)pbyEtherAddr+4); - pbyData[5] = *((u8 *)pbyEtherAddr+5); - CONTROLnsRequestOut(pDevice, MESSAGE_TYPE_WRITE, MAC_REG_BSSID0, MESSAGE_REQUEST_MACREG, - ARRAY_SIZE(pbyData), - pbyData + ETH_ALEN, + pbyEtherAddr ); }