summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-03-30 10:16:09 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-03-31 12:21:40 +0200
commit5034bb8d180a496fc24cd0ac0d8dde2332d28bc2 (patch)
tree36bc914797e4bca89cbfb29df113e9d2dfc740e7
parentb10253ab4d932565dc69e5b3b6715177bb593ba8 (diff)
downloadlvm2-5034bb8d180a496fc24cd0ac0d8dde2332d28bc2.tar.gz
cleanup: use local var to read struct
-rw-r--r--lib/activate/dev_manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index de07f96aa..5341b543e 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -1332,10 +1332,10 @@ int dev_manager_cache_status(struct dev_manager *dm,
* ->target_percent() API is able to transfer only a single value.
* Needs to be able to pass whole structure.
*/
- if (!dm_get_status_cache(dm->mem, params, &((*status)->cache)))
+ if (!dm_get_status_cache(dm->mem, params, &c))
goto_out;
- c = (*status)->cache;
+ (*status)->cache = c;
(*status)->mem = dm->mem; /* User has to destroy this mem pool later */
if (c->fail || c->error) {
(*status)->data_usage =