Skip to content

Commit

Permalink
staging: r8188eu: 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 0a69bb4 commit 5a2d829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -6973,7 +6973,7 @@ static int rtw_mp_ctx(struct net_device *dev,
stop = strncmp(extra, "stop", 4);
sscanf(extra, "count =%d, pkt", &count);

_rtw_memset(extra, '\0', sizeof(extra));
_rtw_memset(extra, '\0', sizeof(*extra));

if (stop == 0) {
bStartTest = 0; /* To set Stop */
Expand Down

0 comments on commit 5a2d829

Please sign in to comment.