From: "Christophe Jaillet" <christophe.jaillet@wanadoo.fr>
To: "cj" <christophe.jaillet@wanadoo.fr>,
"linux" <linux-kernel@vger.kernel.org>, <flatif@neteffect.com>,
<ngupta@neteffect.com>, <gstreiff@neteffect.com>,
<general@lists.openfabrics.org>
Subject: [PATCH 1/1] infiniband/hw/nes/: avoid unnecessary memset
Date: Mon, 12 May 2008 23:35:59 +0200 [thread overview]
Message-ID: <20080512213601.626C91C0008F@mwinf2103.orange.fr> (raw)
From: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Hi, here is a patch against linux/drivers/infiniband/hw/nes/nes_cm.c which :
1) Remove an explicit memset(.., 0, ...) to a variable allocated with
kzalloc (i.e. 'listener').
Note: this patch is based on 'linux-2.6.25.tar.bz2'
Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
---
--- linux/drivers/infiniband/hw/nes/nes_cm.c 2008-04-17 04:49:44.000000000 +0200
+++ linux/drivers/infiniband/hw/nes/nes_cm.c.cj 2008-05-12 23:31:24.000000000 +0200
@@ -1587,7 +1587,6 @@ static struct nes_cm_listener *mini_cm_l
return NULL;
}
- memset(listener, 0, sizeof(struct nes_cm_listener));
listener->loc_addr = htonl(cm_info->loc_addr);
listener->loc_port = htons(cm_info->loc_port);
listener->reused_node = 0;
next reply other threads:[~2008-05-12 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-12 21:35 Christophe Jaillet [this message]
2008-05-12 21:38 ` [PATCH] drivers/net/ehea - remove unnecessary memset after kzalloc Joe Perches
2008-05-20 13:53 ` Jan-Bernd Themann
2008-05-22 10:22 ` Jeff Garzik
2008-05-13 21:46 ` [PATCH 1/1] infiniband/hw/nes/: avoid unnecessary memset Faisal Latif
2008-05-14 16:36 ` [ofa-general] " Roland Dreier
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=20080512213601.626C91C0008F@mwinf2103.orange.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=flatif@neteffect.com \
--cc=general@lists.openfabrics.org \
--cc=gstreiff@neteffect.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ngupta@neteffect.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®