Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parent 475fed1e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;