mirror of
git://github.com/lxc/lxc
synced 2025-08-29 15:19:53 +00:00
coverity: condition already checked for
Signed-off-by: Dwight Engen <dwight.engen@oracle.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
42fb4b1585
commit
5ca6c34bde
@ -1151,8 +1151,7 @@ static int overlayfs_clonepaths(struct bdev *orig, struct bdev *new, const char
|
|||||||
if (strcmp(orig->type, "dir") == 0) {
|
if (strcmp(orig->type, "dir") == 0) {
|
||||||
char *delta;
|
char *delta;
|
||||||
int ret, len;
|
int ret, len;
|
||||||
if (!snap)
|
|
||||||
return -1;
|
|
||||||
// if we have /var/lib/lxc/c2/rootfs, then delta will be
|
// if we have /var/lib/lxc/c2/rootfs, then delta will be
|
||||||
// /var/lib/lxc/c2/delta0
|
// /var/lib/lxc/c2/delta0
|
||||||
delta = strdup(new->dest);
|
delta = strdup(new->dest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user