mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: takis@issaris.org (Panagiotis Issaris)
To: linux-kernel@vger.kernel.org
Cc: zanussi@us.ibm.com, karim@opersys.com
Subject: [PATCH] fs/relayfs: Replace kcalloc(1, with kzalloc.
Date: Wed,  9 Nov 2005 02:03:53 +0100 (CET)	[thread overview]
Message-ID: <20051109010353.D066920A1A@localhost.localdomain> (raw)

Hi, 

This patch replaces two occurrences of kcalloc(1, with kzallocs.

Signed-off-by: Panagiotis Issaris <takis@issaris.org>

---

 fs/relayfs/buffers.c |    2 +-
 fs/relayfs/relay.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

applies-to: 7d508394035f9dd2079f486bc2d0beb4cb25b491
5dac836e6db3c123fde60e00ec1b1040850289b2
diff --git a/fs/relayfs/buffers.c b/fs/relayfs/buffers.c
index 84e21ff..ce65964 100644
--- a/fs/relayfs/buffers.c
+++ b/fs/relayfs/buffers.c
@@ -133,7 +133,7 @@ depopulate:
  */
 struct rchan_buf *relay_create_buf(struct rchan *chan)
 {
-	struct rchan_buf *buf = kcalloc(1, sizeof(struct rchan_buf), GFP_KERNEL);
+	struct rchan_buf *buf = kzalloc(sizeof(struct rchan_buf), GFP_KERNEL);
 	if (!buf)
 		return NULL;
 
diff --git a/fs/relayfs/relay.c b/fs/relayfs/relay.c
index 16446a1..d599295 100644
--- a/fs/relayfs/relay.c
+++ b/fs/relayfs/relay.c
@@ -248,7 +248,7 @@ struct rchan *relay_open(const char *bas
 	if (!(subbuf_size && n_subbufs))
 		return NULL;
 
-	chan = kcalloc(1, sizeof(struct rchan), GFP_KERNEL);
+	chan = kzalloc(sizeof(struct rchan), GFP_KERNEL);
 	if (!chan)
 		return NULL;
 
---
0.99.9.GIT

                 reply	other threads:[~2005-11-09  1:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20051109010353.D066920A1A@localhost.localdomain \
    --to=takis@issaris.org \
    --cc=karim@opersys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zanussi@us.ibm.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®