projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9046db5
)
staging: vt6656: IFRFbWriteEmbedded use ARRAY_SIZE
author
Malcolm Priestley
<tvboxspy@gmail.com>
Tue, 27 May 2014 20:05:18 +0000
(21:05 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:10:46 +0000
(14:10 -0700)
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>
drivers/staging/vt6656/rf.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6656/rf.c
b/drivers/staging/vt6656/rf.c
index d244dab498e064847d602fc46b5502336e6fad23..912615685112a4d4114615393af2c59b2919e11a 100644
(file)
--- 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;
}