[PATCH] fs/relayfs: Replace kcalloc(1, with kzalloc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

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

Signed-off-by: Panagiotis Issaris <[email protected]>

---

 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux