From 220a687f9f589083cd9d1dbd490ab7060ee59ef1 Mon Sep 17 00:00:00 2001 From: Poornima G Date: Mon, 19 Feb 2018 21:54:36 +0530 Subject: upcall: Fix coverity issues NEGATIVE_RETURNS Change-Id: I7d2e733192127ff4ae00ba718562b031f45b72b9 Signed-off-by: Poornima G --- xlators/features/upcall/src/upcall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/features/upcall/src/upcall.c b/xlators/features/upcall/src/upcall.c index 7e1185a417f..dc09b2b3027 100644 --- a/xlators/features/upcall/src/upcall.c +++ b/xlators/features/upcall/src/upcall.c @@ -2172,7 +2172,7 @@ static int32_t up_xattrop (call_frame_t *frame, xlator_t *this, loc_t *loc, gf_xattrop_flags_t optype, dict_t *xattr, dict_t *xdata) { - int32_t op_errno = -1; + int32_t op_errno = EINVAL; upcall_local_t *local = NULL; int ret = 0; upcall_private_t *priv = NULL; @@ -2208,7 +2208,7 @@ static int32_t up_fxattrop (call_frame_t *frame, xlator_t *this, fd_t *fd, gf_xattrop_flags_t optype, dict_t *xattr, dict_t *xdata) { - int32_t op_errno = -1; + int32_t op_errno = EINVAL; upcall_local_t *local = NULL; int ret = 0; upcall_private_t *priv = NULL; -- cgit