diff options
author | Sami Kerola | 2016-07-04 23:09:10 +0200 |
---|---|---|
committer | Sami Kerola | 2016-07-21 22:14:33 +0200 |
commit | 74ce680a3ef90503b26da0a34f04cf725f6c5beb (patch) | |
tree | 307baa695e1c36c7a7855718468d9913ddf96bc1 /libmount/src/fs.c | |
parent | agetty: call uname() only when necessary (diff) | |
download | kernel-qcow2-util-linux-74ce680a3ef90503b26da0a34f04cf725f6c5beb.tar.gz kernel-qcow2-util-linux-74ce680a3ef90503b26da0a34f04cf725f6c5beb.tar.xz kernel-qcow2-util-linux-74ce680a3ef90503b26da0a34f04cf725f6c5beb.zip |
misc: simplify if clauses [oclint]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libmount/src/fs.c')
-rw-r--r-- | libmount/src/fs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libmount/src/fs.c b/libmount/src/fs.c index 9cb329345..c92b6abca 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -749,11 +749,10 @@ char *mnt_fs_strdup_options(struct libmnt_fs *fs) res = merge_optstr(fs->vfs_optstr, fs->fs_optstr); if (!res && errno) return NULL; - if (fs->user_optstr) { - if (mnt_optstr_append_option(&res, fs->user_optstr, NULL)) { - free(res); - res = NULL; - } + if (fs->user_optstr && + mnt_optstr_append_option(&res, fs->user_optstr, NULL)) { + free(res); + res = NULL; } return res; } |