From 61ef7bccafa11d2a046df0a816aea186c5fed601 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Sat, 26 Sep 2015 14:44:40 -0500 Subject: [PATCH] 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 --- src/lxc/conf.c | 3 --- 1 file changed, 3 deletions(-) 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) { -- 2.47.3