mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
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
|
||||
*
|
||||
* Copyright (C) 2009-2009 Red Hat, Inc.
|
||||
* Copyright (C) 2009-2010 Red Hat, Inc.
|
||||
* Copyright (C) 2009-2008 Dave Allan
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
@ -173,8 +173,7 @@ virStorageBackendIsMultipath(const char *devname)
|
||||
goto out;
|
||||
}
|
||||
|
||||
next = dm_get_next_target(dmt, next, &start, &length,
|
||||
&target_type, ¶ms);
|
||||
dm_get_next_target(dmt, next, &start, &length, &target_type, ¶ms);
|
||||
|
||||
if (target_type == NULL) {
|
||||
ret = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user