Skip to content

Commit

Permalink
staging: r8188eu: Add files for new drive: Cocci spatch "noderef"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Meyer authored and Greg Kroah-Hartman committed Sep 25, 2013
1 parent 5a2d829 commit ffceff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/core/rtw_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ffceff4

Please sign in to comment.