diff options
| author | Poornima G <pgurusid@redhat.com> | 2018-02-19 21:54:36 +0530 | 
|---|---|---|
| committer | Raghavendra G <rgowdapp@redhat.com> | 2018-03-05 01:37:40 +0000 | 
| commit | 220a687f9f589083cd9d1dbd490ab7060ee59ef1 (patch) | |
| tree | 0308e4f9bf4a15f4b9c841c3625b4f0a98c98bbb | |
| parent | f5fc2a3188255f557987af749e0ec13961ea1f40 (diff) | |
upcall: Fix coverity issues NEGATIVE_RETURNS
Change-Id: I7d2e733192127ff4ae00ba718562b031f45b72b9
Signed-off-by: Poornima G <pgurusid@redhat.com>
| -rw-r--r-- | xlators/features/upcall/src/upcall.c | 4 | 
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;  | 
