summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-09-19 23:45:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-25 16:53:39 -0700
commitffceff44e45c29943286428d246516e8e9d093d9 (patch)
tree7e6ce166547aeecc52e313b3f147399d6d74a05f
parent5a2d8292f1051c1d1c08fc1732c74ac12ef61452 (diff)
downloadlinux-ffceff44e45c29943286428d246516e8e9d093d9.tar.gz
linux-ffceff44e45c29943286428d246516e8e9d093d9.tar.bz2
linux-ffceff44e45c29943286428d246516e8e9d093d9.zip
staging: r8188eu: Add files for new drive: Cocci spatch "noderef"
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 <thomas@m3y3r.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_mp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mp.c b/drivers/staging/rtl8188eu/core/rtw_mp.c
index c7ff2e4d1f23..9832dcbbd07f 100644
--- 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) {