- LIST_FOREACH_SAFE(mount_point, loopback, loopback_next, *loopback_list_head) {
- if (delete_loopback(loopback->path) == 0)
- mount_point_remove_and_free(loopback, loopback_list_head);
- else {
- log_warning("Could not delete loopback %s: %m", loopback->path);
- failed++;
+ if ((r = delete_loopback(m->path)) >= 0) {
+
+ if (r > 0 && changed)
+ *changed = true;
+
+ mount_point_free(head, m);
+ } else {
+ log_warning("Could not delete loopback %s: %m", m->path);
+ n_failed++;