summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-09-10 11:14:09 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-10 11:15:18 +0530
commitb92d5c616e93e28b1c39bbed7cc78361e0b5d691 (patch)
treec3d15ffe7288385f50048accb378d863d283f4d5
parent7593e05ad38aa63ee7fd6d1c8be815d00874ae2d (diff)
ec-heal: remove a duplicate definition of alloca0
the same macro is defined in common-utils.h, which seems to be much better place for the same. Updates: bz#1193929 Change-Id: I409b719c291102136500b955e5827a550142ed96 Signed-off-by: Amar Tumballi <amarts@redhat.com>
-rw-r--r--xlators/cluster/ec/src/ec-heal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c
index 8f57c7c3cd7..976018c9e29 100644
--- a/xlators/cluster/ec/src/ec-heal.c
+++ b/xlators/cluster/ec/src/ec-heal.c
@@ -27,7 +27,6 @@
#include "ec-fops.h"
#include "ec-heald.h"
-#define alloca0(size) ({void *__ptr; __ptr = alloca(size); memset(__ptr, 0, size); __ptr; })
#define EC_COUNT(array, max) ({int __i; int __res = 0; for (__i = 0; __i < max; __i++) if (array[__i]) __res++; __res; })
#define EC_INTERSECT(dst, src1, src2, max) ({int __i; for (__i = 0; __i < max; __i++) dst[__i] = src1[__i] && src2[__i]; })
#define EC_ADJUST_SOURCE(source, sources, max) ({int __i; if (sources[source] == 0) {source = -1; for (__i = 0; __i < max; __i++) if (sources[__i]) source = __i; } })