mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
fstab-util: drop redundant check
fstab_test_option() checks this as first thing anyway, hence let's drop the redundant check.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user