Commit 5ca6c34b by Dwight Engen Committed by Stéphane Graber

coverity: condition already checked for

parent 42fb4b15
......@@ -1151,8 +1151,7 @@ static int overlayfs_clonepaths(struct bdev *orig, struct bdev *new, const char
if (strcmp(orig->type, "dir") == 0) {
char *delta;
int ret, len;
if (!snap)
return -1;
// if we have /var/lib/lxc/c2/rootfs, then delta will be
// /var/lib/lxc/c2/delta0
delta = strdup(new->dest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment