shared: drop redundant cryptsetup_enable_logging(NULL) calls

These were only used to implicitly load libcryptsetup at startup.
dlopen_cryptsetup() now calls cryptsetup_enable_logging(NULL) itself,
and every code path that uses libcryptsetup calls dlopen_cryptsetup()
before doing so, so the upfront calls are no longer needed.
This commit is contained in:
Daan De Meyer
2026-04-23 08:01:04 +00:00
parent 43dab5ea87
commit 724e5b51e7
3 changed files with 0 additions and 10 deletions
-4
View File
@@ -93,10 +93,6 @@ static int maybe_resize_underlying_device(
assert(mountfd >= 0);
assert(mountpath);
#if HAVE_LIBCRYPTSETUP
cryptsetup_enable_logging(NULL);
#endif
r = get_block_device_harder_fd(mountfd, &devno);
if (r < 0)
return log_error_errno(r, "Failed to determine underlying block device of \"%s\": %m",
-2
View File
@@ -2005,8 +2005,6 @@ static int run(int argc, char *argv[]) {
log_setup();
cryptsetup_enable_logging(NULL);
umask(0022);
if (argc < 2 || argc > 3)
-4
View File
@@ -11222,10 +11222,6 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return r;
#if HAVE_LIBCRYPTSETUP
cryptsetup_enable_logging(NULL);
#endif
if (arg_varlink)
return vl_server();