Skip to content

Commit

Permalink
Char: rocket, don't re-set statics to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Oct 18, 2007
1 parent ac6aec2 commit c148b9d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/char/rocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c148b9d

Please sign in to comment.