summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot/src/bitd/bit-rot.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2015-03-30 19:25:02 +0200
committerVenky Shankar <vshankar@redhat.com>2015-04-01 04:22:49 -0700
commit3fdd3de1a148cfaf4c1ccf72e8ce2893557cfff6 (patch)
tree31685c4da7ea39df09a01b14e0ea762c34467c98 /xlators/features/bit-rot/src/bitd/bit-rot.c
parent07bd6c320c75c39b599929039d028fbc497d4322 (diff)
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 <obnox@samba.org> Reviewed-on: http://review.gluster.org/10055 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators/features/bit-rot/src/bitd/bit-rot.c')
-rw-r--r--xlators/features/bit-rot/src/bitd/bit-rot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/bit-rot/src/bitd/bit-rot.c b/xlators/features/bit-rot/src/bitd/bit-rot.c
index c1a508a..9bd0b82 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));
}