We can rely on the fact that wait_for_remove_process() sets
snapshot_removal_status to the correct value on success.
ret = wait_for_remove_process();
if (ret < 0)
goto out;
- if (snapshot_removal_status != HS_SUCCESS)
- goto out;
+ assert(snapshot_removal_status == HS_SUCCESS);
post_remove_hook();
- if (snapshot_removal_status != HS_POST_RUNNING)
- goto out;
+ assert(snapshot_removal_status == HS_POST_RUNNING);
ret = wait_for_remove_process();
if (ret < 0)
goto out;