kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Sesterhenn <snakebyte@gmx.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [Patch] kzalloc() conversion in arch/arm26
Date: Tue, 07 Mar 2006 12:12:49 +0000	[thread overview]
Message-ID: <1141733570.8665.5.camel@alice> (raw)
In-Reply-To: <1141499387.30193.18.camel@alice>

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

hi, 

this patch converts arch/ppc to kzalloc usage.
Not tested.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6.16-rc5-mm1/arch/arm26/kernel/ecard.c.orig	2006-03-07 12:31:09.000000000 +0100
+++ linux-2.6.16-rc5-mm1/arch/arm26/kernel/ecard.c	2006-03-07 12:31:18.000000000 +0100
@@ -621,12 +621,10 @@ ecard_probe(int slot, card_type_t type)
 	struct ex_ecid cid;
 	int i, rc = -ENOMEM;
 
-	ec = kmalloc(sizeof(ecard_t), GFP_KERNEL);
+	ec = kzalloc(sizeof(ecard_t), GFP_KERNEL);
 	if (!ec)
 		goto nomem;
 
-	memset(ec, 0, sizeof(ecard_t));
-
 	ec->slot_no	= slot;
 	ec->type        = type;
 	ec->irq		= NO_IRQ;



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2006-03-07 12:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-04 19:09 [KJ] [Patch] kzalloc() conversion in arch/ia64 Eric Sesterhenn
2006-03-04 19:09 ` [KJ] [Patch] kzalloc() conversion in arch/i386 Eric Sesterhenn
2006-03-06 20:13 ` [KJ] [Patch] kzalloc() conversion in arch/sparc Eric Sesterhenn
2006-03-06 20:13 ` [KJ] [Patch] kzalloc() conversion in arch/sparc64 Eric Sesterhenn
2006-03-06 20:13 ` [KJ] [Patch] kzalloc() conversion in arch/ppc Eric Sesterhenn
2006-03-07  8:53 ` [KJ] [Patch] kzalloc() conversion in arch/powerpc Eric Sesterhenn
2006-03-07  8:53 ` [KJ] [Patch] kzalloc() conversion in arch/s390 Eric Sesterhenn
2006-03-07 12:12 ` [KJ] [Patch] kzalloc() conversion in arch/alpha Eric Sesterhenn
2006-03-07 12:12 ` Eric Sesterhenn [this message]
2006-03-07 12:12 ` [KJ] [Patch] kzalloc() conversion in arch/m68k Eric Sesterhenn
2006-03-07 20:36 ` [KJ] [Patch] kzalloc() conversion in arch/x86_64 Eric Sesterhenn

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=1141733570.8665.5.camel@alice \
    --to=snakebyte@gmx.de \
    --cc=kernel-janitors@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).