mirror of https://gitee.com/openkylin/linux.git
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:
parent
9046db518e
commit
25d279d3b2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue