summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall/src/upcall.c
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2018-02-19 21:54:36 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-03-05 01:37:40 +0000
commit220a687f9f589083cd9d1dbd490ab7060ee59ef1 (patch)
tree0308e4f9bf4a15f4b9c841c3625b4f0a98c98bbb /xlators/features/upcall/src/upcall.c
parentf5fc2a3188255f557987af749e0ec13961ea1f40 (diff)
upcall: Fix coverity issues NEGATIVE_RETURNS
Change-Id: I7d2e733192127ff4ae00ba718562b031f45b72b9 Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/features/upcall/src/upcall.c')
-rw-r--r--xlators/features/upcall/src/upcall.c4
1 files changed, 2 insertions, 2 deletions
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;