[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:
Родитель
475fed1e22
Коммит
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, 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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче