Commit 13d8d890 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: mac.c pbyData Remove magic number array size

Array size always equals ARRAY_SIZE of pbyData
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f5ed3a38
...@@ -101,7 +101,7 @@ void MACvSetBBType(struct vnt_private *pDevice, u8 byType) ...@@ -101,7 +101,7 @@ void MACvSetBBType(struct vnt_private *pDevice, u8 byType)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
MAC_REG_ENCFG0, MAC_REG_ENCFG0,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -232,7 +232,7 @@ void MACvSetKeyEntry(struct vnt_private *pDevice, u16 wKeyCtl, u32 uEntryIdx, ...@@ -232,7 +232,7 @@ void MACvSetKeyEntry(struct vnt_private *pDevice, u16 wKeyCtl, u32 uEntryIdx,
MESSAGE_TYPE_SETKEY, MESSAGE_TYPE_SETKEY,
wOffset, wOffset,
(u16)uKeyIdx, (u16)uKeyIdx,
24, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
...@@ -249,7 +249,7 @@ void MACvRegBitsOff(struct vnt_private *pDevice, u8 byRegOfs, u8 byBits) ...@@ -249,7 +249,7 @@ void MACvRegBitsOff(struct vnt_private *pDevice, u8 byRegOfs, u8 byBits)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
byRegOfs, byRegOfs,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -265,7 +265,7 @@ void MACvRegBitsOn(struct vnt_private *pDevice, u8 byRegOfs, u8 byBits) ...@@ -265,7 +265,7 @@ void MACvRegBitsOn(struct vnt_private *pDevice, u8 byRegOfs, u8 byBits)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
byRegOfs, byRegOfs,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -281,7 +281,7 @@ void MACvWriteWord(struct vnt_private *pDevice, u8 byRegOfs, u16 wData) ...@@ -281,7 +281,7 @@ void MACvWriteWord(struct vnt_private *pDevice, u8 byRegOfs, u16 wData)
MESSAGE_TYPE_WRITE, MESSAGE_TYPE_WRITE,
byRegOfs, byRegOfs,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
...@@ -302,7 +302,7 @@ void MACvWriteBSSIDAddress(struct vnt_private *pDevice, u8 *pbyEtherAddr) ...@@ -302,7 +302,7 @@ void MACvWriteBSSIDAddress(struct vnt_private *pDevice, u8 *pbyEtherAddr)
MESSAGE_TYPE_WRITE, MESSAGE_TYPE_WRITE,
MAC_REG_BSSID0, MAC_REG_BSSID0,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
6, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -318,7 +318,7 @@ void MACvEnableProtectMD(struct vnt_private *pDevice) ...@@ -318,7 +318,7 @@ void MACvEnableProtectMD(struct vnt_private *pDevice)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
MAC_REG_ENCFG0, MAC_REG_ENCFG0,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -334,7 +334,7 @@ void MACvDisableProtectMD(struct vnt_private *pDevice) ...@@ -334,7 +334,7 @@ void MACvDisableProtectMD(struct vnt_private *pDevice)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
MAC_REG_ENCFG0, MAC_REG_ENCFG0,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -350,7 +350,7 @@ void MACvEnableBarkerPreambleMd(struct vnt_private *pDevice) ...@@ -350,7 +350,7 @@ void MACvEnableBarkerPreambleMd(struct vnt_private *pDevice)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
MAC_REG_ENCFG2, MAC_REG_ENCFG2,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -366,7 +366,7 @@ void MACvDisableBarkerPreambleMd(struct vnt_private *pDevice) ...@@ -366,7 +366,7 @@ void MACvDisableBarkerPreambleMd(struct vnt_private *pDevice)
MESSAGE_TYPE_WRITE_MASK, MESSAGE_TYPE_WRITE_MASK,
MAC_REG_ENCFG2, MAC_REG_ENCFG2,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
...@@ -382,7 +382,7 @@ void MACvWriteBeaconInterval(struct vnt_private *pDevice, u16 wInterval) ...@@ -382,7 +382,7 @@ void MACvWriteBeaconInterval(struct vnt_private *pDevice, u16 wInterval)
MESSAGE_TYPE_WRITE, MESSAGE_TYPE_WRITE,
MAC_REG_BI, MAC_REG_BI,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
2, ARRAY_SIZE(pbyData),
pbyData pbyData
); );
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment