]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdopen.c
sysfs: Avoid if and return on the same line
[thirdparty/mdadm.git] / mdopen.c
index e71d7586cf79d36023eed8beaf45d62af8aaaf01..f818fdf339eb9314eae07fd24b96c5229d0baf43 100644 (file)
--- a/mdopen.c
+++ b/mdopen.c
@@ -439,7 +439,7 @@ char *find_free_devnm(int use_partitions)
        static char devnm[32];
        int devnum;
        for (devnum = 127; devnum != 128;
-            devnum = devnum ? devnum-1 : (1<<20)-1) {
+            devnum = devnum ? devnum-1 : (1<<9)-1) {
 
                if (use_partitions)
                        sprintf(devnm, "md_d%d", devnum);