Char: rocket, don't re-set statics to 0
authorJiri Slaby <jirislaby@gmail.com>
Thu, 18 Oct 2007 10:06:27 +0000 (03:06 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:27 +0000 (14:37 -0700)
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rocket.c

index 01ce0c7d30a97be4e09642e41be625fba846a494..919fb9b06b84d71b6686f9738e880cd3652e6a41 100644 (file)
@@ -2375,18 +2375,6 @@ static int __init rp_init(void)
        if (!rocket_driver)
                return -ENOMEM;
 
-       /*
-        * Initialize the array of pointers to our own internal state
-        * structures.
-        */
-       memset(rp_table, 0, sizeof (rp_table));
-       memset(xmit_flags, 0, sizeof (xmit_flags));
-
-       for (i = 0; i < MAX_RP_PORTS; i++)
-               lineNumbers[i] = 0;
-       nextLineNumber = 0;
-       memset(rocketModel, 0, sizeof (rocketModel));
-
        /*
         *  If board 1 is non-zero, there is at least one ISA configured.  If controller is 
         *  zero, use the default controller IO address of board1 + 0x40.