From f5fc2a3188255f557987af749e0ec13961ea1f40 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Mon, 19 Feb 2018 21:47:45 +0530 Subject: io-cache: Fix coverity issue NEGATIVE_RETURNS Change-Id: I811225ad20e3bd9f05820212e6a843f05d96b246 Signed-off-by: Poornima G --- xlators/performance/io-cache/src/io-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance/io-cache') 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; -- cgit