From: Malcolm Priestley Date: Tue, 27 May 2014 20:05:18 +0000 (+0100) Subject: staging: vt6656: IFRFbWriteEmbedded use ARRAY_SIZE X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=25d279d3b2fd8c6647cc4eac025be479248e8cf4;p=deliverable%2Flinux.git staging: vt6656: IFRFbWriteEmbedded use ARRAY_SIZE Replace magic number with ARRAY_SIZE of pbyData Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/rf.c b/drivers/staging/vt6656/rf.c index d244dab498e0..912615685112 100644 --- a/drivers/staging/vt6656/rf.c +++ b/drivers/staging/vt6656/rf.c @@ -716,7 +716,7 @@ int IFRFbWriteEmbedded(struct vnt_private *pDevice, u32 dwData) pbyData[3] = (u8)(dwData >> 24); vnt_control_out(pDevice, - MESSAGE_TYPE_WRITE_IFRF, 0, 0, 4, pbyData); + MESSAGE_TYPE_WRITE_IFRF, 0, 0, ARRAY_SIZE(pbyData), pbyData); return true; }