mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
[PATCH] drivers/net/wireless/wl3501_cs.c: remove redundant memset
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
475fed1e22
commit
7563a0b4b5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user