From 52fe75d5a404c390a1941b7f6cc3c18fb146ec3e Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 29 Aug 2020 22:55:17 +0200 Subject: libseat: Remove pointless check --- libseat/backend/seatd.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'libseat') diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 9172d65..5bb478e 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -489,11 +489,6 @@ static int close_device(struct libseat *base, int device_id) { conn_get(backend, &rmsg, sizeof rmsg) == -1) { return -1; } - if (rmsg.device_id != device_id) { - log_errorf("Unexpected response: expected device close for %d, got device close for %d", - rmsg.device_id, device_id); - return -1; - } return 0; } -- cgit v1.2.3