diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-01 14:48:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-01 17:17:42 +0200 |
commit | d4ea4ebc393d27aaa150b659f063f09ba75d5ffa (patch) | |
tree | 4dee91505bbb6f8d7f6a93ce9c637fe5727769b4 /src/shared/fstab-util.c | |
parent | sd-journal: fix assignment of tail entry offset (diff) | |
download | systemd-d4ea4ebc393d27aaa150b659f063f09ba75d5ffa.tar.xz systemd-d4ea4ebc393d27aaa150b659f063f09ba75d5ffa.zip |
fstab-util: drop redundant check
fstab_test_option() checks this as first thing anyway, hence let's drop
the redundant check.
Diffstat (limited to 'src/shared/fstab-util.c')
-rw-r--r-- | src/shared/fstab-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/fstab-util.c b/src/shared/fstab-util.c index 164e71a150..d22cff2d82 100644 --- a/src/shared/fstab-util.c +++ b/src/shared/fstab-util.c @@ -54,7 +54,7 @@ bool fstab_is_extrinsic(const char *mount, const char *opts) { /* If this is an initrd mount, and we are not in the initrd, then leave * this around forever, too. */ - if (opts && fstab_test_option(opts, "x-initrd.mount\0") && !in_initrd()) + if (fstab_test_option(opts, "x-initrd.mount\0") && !in_initrd()) return true; return false; |