]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Incremental.c
imsm: remove redundant characters from some error messages
[thirdparty/mdadm.git] / Incremental.c
index ba97b008187975681fb2dd65b4378878f2a735ea..cc01d41e641af8c46fc151594cd6628daafad206 100644 (file)
@@ -1347,8 +1347,12 @@ restart:
 
                if (devnm && strcmp(devnm, me->devnm) != 0)
                        continue;
-               if (devnm && me->metadata[0] == '/') {
+               if (me->metadata[0] == '/') {
                        char *sl;
+
+                       if (!devnm)
+                               continue;
+
                        /* member array, need to work on container */
                        strncpy(container, me->metadata+1, 32);
                        container[31] = 0;