Commit 7563a0b4 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by David S. Miller

[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
......@@ -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, tocopy, 100);
wrqu->encoding.length = tocopy;
memset(extra, 0, tocopy);
memcpy(extra, keys, tocopy);
out:
return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment