1
0

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:
Jim Meyering 2010-02-11 15:26:37 +01:00
parent 8c38b5dc2e
commit d15a67fa56

View File

@ -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, &params);
&target_type, &params);
if (target_type == NULL) { if (target_type == NULL) {
ret = -1; ret = -1;