]> sourceware.org Git - lvm2.git/commitdiff
cleanup: quite gcc warn
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 15 Aug 2014 12:08:06 +0000 (14:08 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 15 Aug 2014 13:06:45 +0000 (15:06 +0200)
gcc can't see dev_get_primary_dev  returns only 0,1,2
so ensure 'name' is always defined in valid path.

lib/filters/filter-mpath.c

index 52c93415ed66b8179a5acf13cd1541e86ab21327..a933ba1e78e5a8632cc6da5470b9eac5af3bf42f 100644 (file)
@@ -158,6 +158,7 @@ static int dev_is_mpath(struct dev_filter *f, struct device *dev)
                return 0;
 
        switch (dev_get_primary_dev(dt, dev, &primary_dev)) {
+               default:
                case 0:
                        /* Error. */
                        log_error("Failed to get primary device for %d:%d.", major, minor);
This page took 0.038273 seconds and 5 git commands to generate.