From 42de8e091032f41639945837c9dee1cdfd371410 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 4a8b10544..bbc8f6ff9 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2182,9 +2182,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.2