From: Mariusz Kozlowski Date: Mon, 6 Aug 2007 22:50:22 +0000 (+0200) Subject: [PATCH] drivers/net/wireless/wl3501_cs.c: remove redundant memset X-Git-Tag: v2.6.24-rc1~1454^2~554 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7563a0b4b5c28b9695f7136fa0ef0cc4cbe1b0c6;p=linux-2.6-omap-h63xx.git [PATCH] drivers/net/wireless/wl3501_cs.c: remove redundant memset Signed-off-by: Mariusz Kozlowski Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index 72f3d97e7cb..732b59f1989 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, 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;