summaryrefslogtreecommitdiff
path: root/src/core/umount.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-12-07 17:34:21 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-12-07 17:34:21 +0100
commitc678406681d32d56730b9e9c002d5500d7aa7f8b (patch)
tree3a9aeca0eb7684358908f91d042879e7fd8251f2 /src/core/umount.c
parent2569a5ce16638d99f1ebaaa7774d183496d8b8e8 (diff)
downloadsystemd-c678406681d32d56730b9e9c002d5500d7aa7f8b.tar.gz
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/core/umount.c')
-rw-r--r--src/core/umount.c2
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);