aboutsummaryrefslogtreecommitdiff
path: root/libseat
diff options
context:
space:
mode:
Diffstat (limited to 'libseat')
-rw-r--r--libseat/backend/logind.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c
index 98d7219..5afb77a 100644
--- a/libseat/backend/logind.c
+++ b/libseat/backend/logind.c
@@ -130,7 +130,6 @@ static int close_device(struct libseat *base, int device_id) {
struct stat st = {0};
if (fstat(fd, &st) < 0) {
log_errorf("Could not stat fd %d", fd);
- close(fd);
return -1;
}
if (dev_is_drm(st.st_rdev)) {
@@ -138,7 +137,6 @@ static int close_device(struct libseat *base, int device_id) {
log_debugf("DRM device closed, current total: %d", session->has_drm);
assert(session->has_drm >= 0);
}
- close(fd);
sd_bus_message *msg = NULL;
sd_bus_error error = SD_BUS_ERROR_NULL;