All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH 4/7] Char: isicom, remove unneeded memset
Date: Thu, 19 Oct 2006 22:26:58 +0200 (CEST)	[thread overview]
Message-ID: <27770221971423522931@wsc.cz> (raw)

isicom, remove unneeded memset

Memsetting of global static variables is not needed in the init code.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>

---
commit a2d2f722e0d805a57d7835e715c520ca7a7580a7
tree 5bf84122a37ff113797c54f122f0144b3a302237
parent a11b72a2838aa7dfee930168faeebf25a23c70d4
author Jiri Slaby <jirislaby@gmail.com> Thu, 19 Oct 2006 19:28:14 +0200
committer Jiri Slaby <jirislaby@gmail.com> Thu, 19 Oct 2006 19:28:14 +0200

 drivers/char/isicom.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c
index 8cd6cc2..1b9ef44 100644
--- a/drivers/char/isicom.c
+++ b/drivers/char/isicom.c
@@ -1835,7 +1835,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];

             reply	other threads:[~2006-10-19 20:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-19 20:26 Jiri Slaby [this message]
2006-10-19 21:52 ` [PATCH 4/7] Char: isicom, remove unneeded memset Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27770221971423522931@wsc.cz \
    --to=jirislaby@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.