]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
mdadm: replace container level checking with inline
[thirdparty/mdadm.git] / super1.c
index 58345e68b97c7e32cf935e95f4f0985cc3723318..0b505a7e1838d85a6100cca41f74d7173c89adc0 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -2830,7 +2830,7 @@ static int validate_geometry1(struct supertype *st, int level,
        unsigned long long overhead;
        int fd;
 
-       if (level == LEVEL_CONTAINER) {
+       if (is_container(level)) {
                if (verbose)
                        pr_err("1.x metadata does not support containers\n");
                return 0;