mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: quite gcc warn
gcc can't see dev_get_primary_dev returns only 0,1,2 so ensure 'name' is always defined in valid path.
This commit is contained in:
parent
ff33d215ba
commit
9534c21ead
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user