]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.h
Fix some issues found by clang
[thirdparty/mdadm.git] / mdmon.h
diff --git a/mdmon.h b/mdmon.h
index aa750c6811e146c9cc9b402783600d47ef75b6cd..0b08c3d7da2a62e6b3934e0b2716cd85fd2dc759 100644 (file)
--- 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;