From: Lennart Poettering Date: Thu, 1 Jun 2023 12:48:55 +0000 (+0200) Subject: fstab-util: drop redundant check X-Git-Tag: v254-rc1~305^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4ea4ebc393d27aaa150b659f063f09ba75d5ffa;p=thirdparty%2Fsystemd.git fstab-util: drop redundant check fstab_test_option() checks this as first thing anyway, hence let's drop the redundant check. --- diff --git a/src/shared/fstab-util.c b/src/shared/fstab-util.c index 164e71a150d..d22cff2d823 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;