diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2006-12-13 03:34:52 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 12:05:52 -0500 |
commit | cd86128088554d64fea1679191509f00e6353c5b (patch) | |
tree | a828960f4bd44ef1682d88618e58c6ccd2367bc1 /fs/ocfs2/cluster/heartbeat.c | |
parent | 90aef12e6dd609e1ad7fb70044eedc78ca55ee5e (diff) |
[PATCH] Fix numerous kcalloc() calls, convert to kzalloc()
All kcalloc() calls of the form "kcalloc(1,...)" are converted to the
equivalent kzalloc() calls, and a few kcalloc() calls with the incorrect
ordering of the first two arguments are fixed.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Greg KH <greg@kroah.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ocfs2/cluster/heartbeat.c')
-rw-r--r-- | fs/ocfs2/cluster/heartbeat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index 4cd9a9580456..a25ef5a50386 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c | |||
@@ -1553,7 +1553,7 @@ static struct config_item *o2hb_heartbeat_group_make_item(struct config_group *g | |||
1553 | struct o2hb_region *reg = NULL; | 1553 | struct o2hb_region *reg = NULL; |
1554 | struct config_item *ret = NULL; | 1554 | struct config_item *ret = NULL; |
1555 | 1555 | ||
1556 | reg = kcalloc(1, sizeof(struct o2hb_region), GFP_KERNEL); | 1556 | reg = kzalloc(sizeof(struct o2hb_region), GFP_KERNEL); |
1557 | if (reg == NULL) | 1557 | if (reg == NULL) |
1558 | goto out; /* ENOMEM */ | 1558 | goto out; /* ENOMEM */ |
1559 | 1559 | ||
@@ -1679,7 +1679,7 @@ struct config_group *o2hb_alloc_hb_set(void) | |||
1679 | struct o2hb_heartbeat_group *hs = NULL; | 1679 | struct o2hb_heartbeat_group *hs = NULL; |
1680 | struct config_group *ret = NULL; | 1680 | struct config_group *ret = NULL; |
1681 | 1681 | ||
1682 | hs = kcalloc(1, sizeof(struct o2hb_heartbeat_group), GFP_KERNEL); | 1682 | hs = kzalloc(sizeof(struct o2hb_heartbeat_group), GFP_KERNEL); |
1683 | if (hs == NULL) | 1683 | if (hs == NULL) |
1684 | goto out; | 1684 | goto out; |
1685 | 1685 | ||