projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e688097
)
dissect-image: remove dead code
author
Lennart Poettering
<lennart@poettering.net>
Mon, 11 Nov 2024 16:19:26 +0000
(17:19 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 12 Nov 2024 17:31:56 +0000
(18:31 +0100)
src/shared/dissect-image.c
patch
|
blob
|
history
diff --git
a/src/shared/dissect-image.c
b/src/shared/dissect-image.c
index f9418754a8b772ec4a18b9d068ea504b8daca010..39c5c8a21a2648903c2f5a73189d9032b6807682 100644
(file)
--- 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;