]> 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)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 26 Sep 2015 19:44:40 +0000 (14:44 -0500)
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 0913b22f5c448dbda20e0279a64e08673f7c92d1..1b71795401f9999aec90ad4a5004ba57b3890d95 100644 (file)
@@ -1849,9 +1849,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) {