]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Char: isicom, remove unneeded memset
authorJiri Slaby <jirislaby@gmail.com>
Fri, 8 Dec 2006 10:38:51 +0000 (02:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:57 +0000 (08:28 -0800)
Memsetting of global static variables is not needed in the init code.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/isicom.c

index 51fa317e695ca790ccd45a2e26e0740bfe16fecd..c5cb2a9e68ba6d15242de130f94350fd5ab5b607 100644 (file)
@@ -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];