From b92d5c616e93e28b1c39bbed7cc78361e0b5d691 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 10 Sep 2018 11:14:09 +0530 Subject: 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 --- xlators/cluster/ec/src/ec-heal.c | 1 - 1 file changed, 1 deletion(-) (limited to 'xlators') 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; } }) -- cgit