From 3fdd3de1a148cfaf4c1ccf72e8ce2893557cfff6 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 30 Mar 2015 19:25:02 +0200 Subject: features/bit-rot: fix assignment instead of check (Coverity fix) Fixes Coverity CIDs 1291728, 1291723, 1291732. Change-Id: I62f3d540cac0f555fe2839b8418e59691c3ff4fd BUG: 789278 Signed-off-by: Michael Adam Reviewed-on: http://review.gluster.org/10055 Tested-by: Gluster Build System Reviewed-by: Raghavendra Talur Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- xlators/features/bit-rot/src/bitd/bit-rot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/bit-rot/src/bitd/bit-rot.c') diff --git a/xlators/features/bit-rot/src/bitd/bit-rot.c b/xlators/features/bit-rot/src/bitd/bit-rot.c index c1a508a57a6..9bd0b8284ec 100644 --- a/xlators/features/bit-rot/src/bitd/bit-rot.c +++ b/xlators/features/bit-rot/src/bitd/bit-rot.c @@ -437,7 +437,7 @@ br_object_read_sign (inode_t *linked_inode, fd_t *fd, br_object_t *object, static inline int br_object_sign_softerror (int32_t op_errno) { - return ((op_errno == ENOENT) || (op_errno = ESTALE) + return ((op_errno == ENOENT) || (op_errno == ESTALE) || (op_errno == ENODATA)); } -- cgit