diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-12-07 17:34:21 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-12-07 17:34:21 +0100 |
commit | c678406681d32d56730b9e9c002d5500d7aa7f8b (patch) | |
tree | 3a9aeca0eb7684358908f91d042879e7fd8251f2 /src | |
parent | 2569a5ce16638d99f1ebaaa7774d183496d8b8e8 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/umount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/umount.c b/src/core/umount.c index f6c520eaa8..877680764d 100644 --- a/src/core/umount.c +++ b/src/core/umount.c @@ -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); |