From: Malcolm Priestley Date: Tue, 27 May 2014 20:05:18 +0000 (+0100) Subject: staging: vt6656: IFRFbWriteEmbedded use ARRAY_SIZE X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~101 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=25d279d3b2fd8c6647cc4eac025be479248e8cf4;p=firefly-linux-kernel-4.4.55.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; }