mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 12:06:12 +00:00
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 <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
6f2944c172
commit
d7c8805c10
@ -1849,9 +1849,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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user