Skip to content
Snippets Groups Projects
Commit 7563a0b4 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by David S. Miller
Browse files

[PATCH] drivers/net/wireless/wl3501_cs.c: remove redundant memset


Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 475fed1e
No related branches found
No related tags found
No related merge requests found
...@@ -1841,7 +1841,6 @@ static int wl3501_get_encode(struct net_device *dev, ...@@ -1841,7 +1841,6 @@ static int wl3501_get_encode(struct net_device *dev,
tocopy = min_t(u8, len_keys, wrqu->encoding.length); tocopy = min_t(u8, len_keys, wrqu->encoding.length);
tocopy = min_t(u8, tocopy, 100); tocopy = min_t(u8, tocopy, 100);
wrqu->encoding.length = tocopy; wrqu->encoding.length = tocopy;
memset(extra, 0, tocopy);
memcpy(extra, keys, tocopy); memcpy(extra, keys, tocopy);
out: out:
return rc; return rc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment