1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: remove goto

Move goto path into 'if()' branch.
This commit is contained in:
Zdenek Kabelac 2016-10-26 11:26:02 +02:00
parent 9cbe4c1af9
commit 0d95082aa9

View File

@ -73,8 +73,10 @@ static int _get_mirror_event(struct dso_state *state, char *params)
unsigned i; unsigned i;
struct dm_status_mirror *ms; struct dm_status_mirror *ms;
if (!dm_get_status_mirror(state->mem, params, &ms)) if (!dm_get_status_mirror(state->mem, params, &ms)) {
goto_out; log_error("Unable to parse mirror status string.");
return ME_IGNORE;
}
/* Check for bad mirror devices */ /* Check for bad mirror devices */
for (i = 0; i < ms->dev_count; ++i) for (i = 0; i < ms->dev_count; ++i)
@ -95,11 +97,6 @@ static int _get_mirror_event(struct dso_state *state, char *params)
dm_pool_free(state->mem, ms); dm_pool_free(state->mem, ms);
return r; return r;
out:
log_error("Unable to parse mirror status string.");
return ME_IGNORE;
} }
static int _remove_failed_devices(const char *cmd_lvscan, const char *cmd_lvconvert) static int _remove_failed_devices(const char *cmd_lvscan, const char *cmd_lvconvert)