summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorSunny Kumar <sunkumar@redhat.com>2018-10-24 15:23:34 +0530
committerAmar Tumballi <amarts@redhat.com>2018-10-25 11:16:33 +0000
commitc5d285b173f253be19458a6ba4470671978ab698 (patch)
tree0266da5d34773cdcf79dcc171d4a1be8b418d099 /xlators/storage
parent0ca6773eaf5aeb507ebc72d2c2f61902eeff414c (diff)
posix : fix coverity issues in posix-inode-fd-ops.c
This patch fixes CID: 1356526 and 1382369 : Argument cannot be negative Change-Id: I1aab5be2d217479db9f67a26b62854a0b38c1747 updates: bz#789278 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r--xlators/storage/posix/src/posix-inode-fd-ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c
index ce73737d3ae..735c5731d55 100644
--- a/xlators/storage/posix/src/posix-inode-fd-ops.c
+++ b/xlators/storage/posix/src/posix-inode-fd-ops.c
@@ -1029,7 +1029,7 @@ posix_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, off_t offset,
};
struct posix_private *priv = NULL;
int op_ret = -1;
- int op_errno = -EINVAL;
+ int op_errno = EINVAL;
dict_t *rsp_xdata = NULL;
VALIDATE_OR_GOTO(frame, out);
@@ -1065,7 +1065,7 @@ posix_ipc(call_frame_t *frame, xlator_t *this, int32_t op, dict_t *xdata)
*/
gf_msg(this->name, GF_LOG_ERROR, 0, P_MSG_IPC_NOT_HANDLE,
"GF_LOG_IPC(%d) not handled", op);
- STACK_UNWIND_STRICT(ipc, frame, -1, -EOPNOTSUPP, NULL);
+ STACK_UNWIND_STRICT(ipc, frame, -1, EOPNOTSUPP, NULL);
return 0;
}