summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-cache
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2018-02-19 21:47:45 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-03-05 01:37:27 +0000
commitf5fc2a3188255f557987af749e0ec13961ea1f40 (patch)
tree530768254b99577ab3445f51696f4096825dad05 /xlators/performance/io-cache
parent0ec482b5d5b8e4db993f90df70a4c985a426b411 (diff)
io-cache: Fix coverity issue NEGATIVE_RETURNS
Change-Id: I811225ad20e3bd9f05820212e6a843f05d96b246 Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/performance/io-cache')
-rw-r--r--xlators/performance/io-cache/src/io-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index 68191c56cf6..baef1e1e970 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -1099,7 +1099,7 @@ ioc_readv (call_frame_t *frame, xlator_t *this, fd_t *fd,
ioc_local_t *local = NULL;
uint32_t weight = 0;
ioc_table_t *table = NULL;
- int32_t op_errno = -1;
+ int32_t op_errno = EINVAL;
if (!this) {
goto out;