diff options
author | Michael Adam <obnox@samba.org> | 2015-03-30 19:25:02 +0200 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-04-01 04:22:49 -0700 |
commit | 3fdd3de1a148cfaf4c1ccf72e8ce2893557cfff6 (patch) | |
tree | 31685c4da7ea39df09a01b14e0ea762c34467c98 /xlators | |
parent | 07bd6c320c75c39b599929039d028fbc497d4322 (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')
-rw-r--r-- | xlators/features/bit-rot/src/bitd/bit-rot.c | 2 |
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 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)); } |