OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e7e93e
)
staging: rtl8188eu: types of local variables conformed with types of function arguments
author
Ivan Safonov
<insafonov@gmail.com>
Tue, 3 Nov 2015 09:51:47 +0000
(16:51 +0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000
(20:02 -0800)
The array should not change in any case.
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/fw.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8188eu/hal/fw.c
b/drivers/staging/rtl8188eu/hal/fw.c
index
4f1c3a2
..
8eafd7e
100644
(file)
--- a/
drivers/staging/rtl8188eu/hal/fw.c
+++ b/
drivers/staging/rtl8188eu/hal/fw.c
@@
-58,8
+58,8
@@
static void _rtl88e_fw_block_write(struct adapter *adapt,
const u8 *buffer, u32 size)
{
u32 blk_sz = sizeof(u32);
- u8 *buf_ptr = (u8 *)buffer;
- u32 *pu4BytePtr = (u32 *)buffer;
+
const
u8 *buf_ptr = (u8 *)buffer;
+
const
u32 *pu4BytePtr = (u32 *)buffer;
u32 i, offset, blk_cnt, remain;
blk_cnt = size / blk_sz;