diff --git a/criu/mount.c b/criu/mount.c index 0fb3b05bbf..e5f5c66d6e 100644 --- a/criu/mount.c +++ b/criu/mount.c @@ -126,9 +126,8 @@ struct mount_info *tail_buffer; void mntinfo_add_list_before(struct mount_info **head, struct mount_info *new) { - if (!*head) { + if (!*head) tail_buffer = new; - } new->next = *head; new->tail = tail_buffer; @@ -1202,7 +1201,7 @@ int __check_mountpoint_fd(struct mount_info *pm, int mnt_fd, bool parse_mountinf return 0; pr_warn("The file system %#x %#x (%#x) %s %s is inaccessible\n", pm->s_dev, pm->s_dev_rt, dev, - pm->fstype->name, pm->ns_mountpoint); + pm->fstype->name, pm->ns_mountpoint); return -1; } @@ -1959,7 +1958,7 @@ static int dump_mnt_ns(struct ns_id *ns, struct mount_info *pms) _mi = list_entry(_mi->children._el, struct mount_info, siblings); \ continue; \ } \ -up: \ + up: \ if (_fn_r(_mi)) \ return -1; \ if (_mi == _r) \