]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virStorageBackendIsMultipath: avoid dead store
authorJim Meyering <meyering@redhat.com>
Thu, 11 Feb 2010 14:26:37 +0000 (15:26 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 16 Feb 2010 16:49:05 +0000 (17:49 +0100)
* 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.

src/storage/storage_backend_mpath.c

index dbcd6d89a41bec86c49d968ea648f66f6ec8f354..83189696cbadab16c76ced37753de65d5a15a0e1 100644 (file)
@@ -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, &params);
+    dm_get_next_target(dmt, next, &start, &length, &target_type, &params);
 
     if (target_type == NULL) {
         ret = -1;