mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 23:05:39 +00:00
mount: Drop useless NULL assignment
We allocate mount_info with xzalloc, no need for additional NULL assignment. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
38c34aae5e
commit
58c4631ae7
1
mount.c
1
mount.c
@@ -1098,7 +1098,6 @@ struct mount_info *mnt_entry_alloc()
|
|||||||
INIT_LIST_HEAD(&new->mnt_share);
|
INIT_LIST_HEAD(&new->mnt_share);
|
||||||
INIT_LIST_HEAD(&new->mnt_bind);
|
INIT_LIST_HEAD(&new->mnt_bind);
|
||||||
INIT_LIST_HEAD(&new->postpone);
|
INIT_LIST_HEAD(&new->postpone);
|
||||||
new->mnt_master = NULL;
|
|
||||||
}
|
}
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user