diff options
Diffstat (limited to 'src/backends/jerasure/jerasure_rs_vand.c')
-rw-r--r-- | src/backends/jerasure/jerasure_rs_vand.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/backends/jerasure/jerasure_rs_vand.c b/src/backends/jerasure/jerasure_rs_vand.c index 0df892a..6558fa7 100644 --- a/src/backends/jerasure/jerasure_rs_vand.c +++ b/src/backends/jerasure/jerasure_rs_vand.c @@ -31,6 +31,7 @@ #include "erasurecode.h" #include "erasurecode_backend.h" +#include "erasurecode_helpers.h" /* Forward declarations */ struct ec_backend_op_stubs jerasure_rs_vand_ops; @@ -58,23 +59,6 @@ struct jerasure_rs_vand_descriptor { int w; }; -/** - * ToDo (KMG): Move this to a util package, or replace with calloc - */ -static -void * alloc_zeroed_buffer(int size) -{ - void * buf = NULL; /* buffer to allocate and return */ - - /* Allocate and zero the buffer, or set the appropriate error */ - buf = malloc((size_t) size); - if (buf) { - buf = memset(buf, 0, (size_t) size); - } - - return buf; -} - static int jerasure_rs_vand_encode(void *desc, char **data, char **parity, int blocksize) { |