Skip to content

Commit

Permalink
[PATCH] Char: isicom, remove unneeded memset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 18234f8 commit 8acef8f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/char/isicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 8acef8f

Please sign in to comment.