umount: fix check for DM changed

delete_dm() returns 0 on success. The check for "r > 0" was likely
a copy&paste error from the loopback code where "r > 0" makes sense.
This commit is contained in:
Michal Schmidt 2012-12-07 17:34:21 +01:00
parent 2569a5ce16
commit c678406681
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ static int dm_points_list_detach(MountPoint **head, bool *changed) {
if ((r = delete_dm(m->devnum)) >= 0) {
if (r > 0 && changed)
if (changed)
*changed = true;
mount_point_free(head, m);