From: Jiri Slaby Date: Fri, 8 Dec 2006 10:38:51 +0000 (-0800) Subject: [PATCH] Char: isicom, remove unneeded memset X-Git-Tag: v2.6.20-rc1~34^2~194 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8acef8fcab2d824c1c445857f457fb04facc765d;p=linux-2.6-omap-h63xx.git [PATCH] Char: isicom, remove unneeded memset Memsetting of global static variables is not needed in the init code. Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c index 51fa317e695..c5cb2a9e68b 100644 --- a/drivers/char/isicom.c +++ b/drivers/char/isicom.c @@ -1836,7 +1836,6 @@ static int __init isicom_init(void) struct isi_port *port; card = 0; - memset(isi_ports, 0, sizeof(isi_ports)); for(idx = 0; idx < BOARD_COUNT; idx++) { port = &isi_ports[idx * 16];