Message ID | 8b02d8e00d86809832c47de8ce3fb7502c30abac.1460583313.git.crobinso@redhat.com |
---|---|
State | Accepted |
Commit | 8f8c0feb113420625f15b7f1e17bfd719c977eeb |
Headers | show |
diff --git a/src/storage/storage_backend_mpath.c b/src/storage/storage_backend_mpath.c index b5b4bb6..bf1b1ab 100644 --- a/src/storage/storage_backend_mpath.c +++ b/src/storage/storage_backend_mpath.c @@ -114,12 +114,7 @@ virStorageBackendIsMultipath(const char *dev_name) dm_get_next_target(dmt, next, &start, &length, &target_type, ¶ms); - if (target_type == NULL) { - ret = -1; - goto out; - } - - if (STREQ(target_type, "multipath")) + if (STREQ_NULLABLE(target_type, "multipath")) ret = 1; out: