]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: drop second (redundant) block
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 26 Sep 2015 19:44:40 +0000 (14:44 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 29 Sep 2015 16:38:33 +0000 (12:38 -0400)
Don't proceed to try the mount if we failed to create the
target if it didn't exist.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index 0aa6c4459630c8d4a34bdd22f167132011d4d6dd..6cbb98da6b883b26112d75cf473df2d9a683b15d 100644 (file)
@@ -1852,9 +1852,6 @@ static inline int mount_entry_on_generic(struct mntent *mntent,
        if (ret < 0)
                return optional ? 0 : -1;
 
-       if (ret < 0 && !optional)
-               return -1;
-
        cull_mntent_opt(mntent);
 
        if (parse_mntopts(mntent->mnt_opts, &mntflags, &mntdata) < 0) {