summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-11 17:19:26 +0100
committerLennart Poettering <lennart@poettering.net>2024-11-12 18:31:56 +0100
commit0557f82650efbed618e03f557a91cf724b29b533 (patch)
tree9842c4e30a448f41ffbfebfaefa93ae8a5e12c31 /src/shared
parentmountfsd: drop unused variable (diff)
downloadsystemd-0557f82650efbed618e03f557a91cf724b29b533.tar.xz
systemd-0557f82650efbed618e03f557a91cf724b29b533.zip
dissect-image: remove dead code
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dissect-image.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index f9418754a8..39c5c8a21a 100644
--- a/src/shared/dissect-image.c
+++ b/src/shared/dissect-image.c
@@ -4271,7 +4271,6 @@ int mountfsd_mount_image(
_cleanup_close_ int image_fd = -EBADF;
_cleanup_(sd_varlink_unrefp) sd_varlink *vl = NULL;
_cleanup_free_ char *ps = NULL;
- unsigned max_fd = UINT_MAX;
const char *error_id;
int r;
@@ -4365,9 +4364,6 @@ int mountfsd_mount_image(
return log_error_errno(r, "Failed to parse partition data: %m");
if (pp.fsmount_fd_idx != UINT_MAX) {
- if (max_fd == UINT_MAX || pp.fsmount_fd_idx > max_fd)
- max_fd = pp.fsmount_fd_idx;
-
fsmount_fd = sd_varlink_take_fd(vl, pp.fsmount_fd_idx);
if (fsmount_fd < 0)
return fsmount_fd;