summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2015-03-11 08:54:12 -0700
committerTushar Gohad <tushar.gohad@intel.com>2015-03-11 09:44:37 -0700
commitd7d0bbde097a7a5b93d1a52abbee3ebc0d9c3760 (patch)
tree7b394be914ea0461873070f53d6fb6a26b41fcd4 /src
parentb6851e829defb84d86f0b8f0f08f77d43cd1efcf (diff)
downloadliberasurecode-d7d0bbde097a7a5b93d1a52abbee3ebc0d9c3760.tar.gz
Reallow 0 byte encodes
Diffstat (limited to 'src')
-rw-r--r--src/erasurecode.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/erasurecode.c b/src/erasurecode.c
index c932c85..037411e 100644
--- a/src/erasurecode.c
+++ b/src/erasurecode.c
@@ -392,12 +392,6 @@ int liberasurecode_encode(int desc,
goto out;
}
- if (orig_data_size <= 0) {
- log_error("Size of data to encode must be a positive value");
- ret = -EINVALIDPARAMS;
- goto out;
- }
-
if (encoded_data == NULL) {
log_error("Pointer to encoded data buffers is null!");
return -EINVALIDPARAMS;