From: Serge Hallyn Date: Sat, 26 Sep 2015 19:44:40 +0000 (-0500) Subject: coverity: drop second (redundant) block X-Git-Tag: lxc-1.1.4~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61ef7bccafa11d2a046df0a816aea186c5fed601;p=thirdparty%2Flxc.git coverity: drop second (redundant) block Don't proceed to try the mount if we failed to create the target if it didn't exist. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 0aa6c4459..6cbb98da6 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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) {