aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-08-06 18:50:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:33 -0400
commit7563a0b4b5c28b9695f7136fa0ef0cc4cbe1b0c6 (patch)
tree3b40e231d1f142fcb278ca091becb1c6be59f818
parent475fed1e22e58508cf50c882db68c7b29842d4d5 (diff)
[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>
-rw-r--r--drivers/net/wireless/wl3501_cs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c
index 72f3d97e7cb4..732b59f19892 100644
--- a/drivers/net/wireless/wl3501_cs.c
+++ b/drivers/net/wireless/wl3501_cs.c
@@ -1841,7 +1841,6 @@ static int wl3501_get_encode(struct net_device *dev,
1841 tocopy = min_t(u8, len_keys, wrqu->encoding.length); 1841 tocopy = min_t(u8, len_keys, wrqu->encoding.length);
1842 tocopy = min_t(u8, tocopy, 100); 1842 tocopy = min_t(u8, tocopy, 100);
1843 wrqu->encoding.length = tocopy; 1843 wrqu->encoding.length = tocopy;
1844 memset(extra, 0, tocopy);
1845 memcpy(extra, keys, tocopy); 1844 memcpy(extra, keys, tocopy);
1846out: 1845out:
1847 return rc; 1846 return rc;