virStorageBackendIsMultipath: avoid dead store
* src/storage/storage_backend_mpath.c (virStorageBackendIsMultipath): The result of dm_get_next_target was never used (and isn't needed), so don't store it.
This commit is contained in:
parent
8c38b5dc2e
commit
d15a67fa56
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* storage_backend_mpath.c: storage backend for multipath handling
|
* storage_backend_mpath.c: storage backend for multipath handling
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2009 Red Hat, Inc.
|
* Copyright (C) 2009-2010 Red Hat, Inc.
|
||||||
* Copyright (C) 2009-2008 Dave Allan
|
* Copyright (C) 2009-2008 Dave Allan
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -173,8 +173,7 @@ virStorageBackendIsMultipath(const char *devname)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
next = dm_get_next_target(dmt, next, &start, &length,
|
dm_get_next_target(dmt, next, &start, &length, &target_type, ¶ms);
|
||||||
&target_type, ¶ms);
|
|
||||||
|
|
||||||
if (target_type == NULL) {
|
if (target_type == NULL) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user