summaryrefslogtreecommitdiff
path: root/src/backends
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2014-07-21 01:19:36 -0700
committerTushar Gohad <tushar.gohad@intel.com>2014-07-21 01:19:36 -0700
commit8a07d41e850694a3c60904119b899cf476c2b05e (patch)
tree306336fc4597c9e6255495ea8ccc32516b7dae94 /src/backends
parent4de83981d33ec120e4ba1fcd7190256f353c12a3 (diff)
downloadliberasurecode-8a07d41e850694a3c60904119b899cf476c2b05e.tar.gz
Add encode postprocessing, checksum helpers
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'src/backends')
-rw-r--r--src/backends/jerasure/jerasure_rs_vand.c18
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)
{