From 25d279d3b2fd8c6647cc4eac025be479248e8cf4 Mon Sep 17 00:00:00 2001 From: Malcolm Priestley Date: Tue, 27 May 2014 21:05:18 +0100 Subject: [PATCH] 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 --- drivers/staging/vt6656/rf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }