Commit 61ef7bcc by Serge Hallyn Committed by Stéphane Graber

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: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 6de26af9
...@@ -1852,9 +1852,6 @@ static inline int mount_entry_on_generic(struct mntent *mntent, ...@@ -1852,9 +1852,6 @@ static inline int mount_entry_on_generic(struct mntent *mntent,
if (ret < 0) if (ret < 0)
return optional ? 0 : -1; return optional ? 0 : -1;
if (ret < 0 && !optional)
return -1;
cull_mntent_opt(mntent); cull_mntent_opt(mntent);
if (parse_mntopts(mntent->mnt_opts, &mntflags, &mntdata) < 0) { if (parse_mntopts(mntent->mnt_opts, &mntflags, &mntdata) < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment