summaryrefslogtreecommitdiff
path: root/mdmon.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdmon.h')
-rw-r--r--mdmon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdmon.h b/mdmon.h
index aa750c68..0b08c3d7 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -101,7 +101,7 @@ static inline int is_resync_complete(struct mdinfo *array)
break;
case 10:
l = array->array.layout;
- ncopies = (l & 0xff) * ((l >> 8) && 0xff);
+ ncopies = (l & 0xff) * ((l >> 8) & 0xff);
sync_size = array->component_size * array->array.raid_disks;
sync_size /= ncopies;
break;