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:
5a2d829
)
staging: r8188eu: Add files for new drive: Cocci spatch "noderef"
author
Thomas Meyer
<
[email protected]
>
Thu, 19 Sep 2013 21:45:46 +0000
(23:45 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 25 Sep 2013 23:53:39 +0000
(16:53 -0700)
sizeof when applied to a pointer typed expression gives the size of the
pointer.
Found by coccinelle spatch "misc/noderef.cocci"
Signed-off-by: Thomas Meyer <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/rtl8188eu/core/rtw_mp.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8188eu/core/rtw_mp.c
b/drivers/staging/rtl8188eu/core/rtw_mp.c
index c7ff2e4d1f23fcc4567c747bf97beff945886862..9832dcbbd07fa621467dfc1c216411e627db7e66 100644
(file)
--- a/
drivers/staging/rtl8188eu/core/rtw_mp.c
+++ b/
drivers/staging/rtl8188eu/core/rtw_mp.c
@@
-907,7
+907,7
@@
u32 mp_query_psd(struct adapter *pAdapter, u8 *data)
sscanf(data, "pts =%d, start =%d, stop =%d", &psd_pts, &psd_start, &psd_stop);
}
- _rtw_memset(data, '\0', sizeof(data));
+ _rtw_memset(data, '\0', sizeof(
*
data));
i = psd_start;
while (i < psd_stop) {