staging: vt6656: IFRFbWriteEmbedded use ARRAY_SIZE

Replace magic number with ARRAY_SIZE of pbyData

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2014-05-27 21:05:18 +01:00 committed by Greg Kroah-Hartman
parent 9046db518e
commit 25d279d3b2
1 changed files with 1 additions and 1 deletions

View File

@ -716,7 +716,7 @@ int IFRFbWriteEmbedded(struct vnt_private *pDevice, u32 dwData)
pbyData[3] = (u8)(dwData >> 24); pbyData[3] = (u8)(dwData >> 24);
vnt_control_out(pDevice, vnt_control_out(pDevice,
MESSAGE_TYPE_WRITE_IFRF, 0, 0, 4, pbyData); MESSAGE_TYPE_WRITE_IFRF, 0, 0, ARRAY_SIZE(pbyData), pbyData);
return true; return true;
} }