From e86c9ec2b722c8b6aef6ea90ecddb57081a1c67f Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 30 Aug 2020 03:26:32 +0200 Subject: seatd: Remove unused device_closed msg body --- libseat/backend/seatd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libseat') diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 1a187b1..46e354d 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -478,9 +478,7 @@ static int close_device(struct libseat *base, int device_id) { return -1; } - struct proto_server_device_closed rmsg; - if (read_header(backend, SERVER_DEVICE_CLOSED, sizeof rmsg, false) == SIZE_MAX || - conn_get(backend, &rmsg, sizeof rmsg) == -1) { + if (read_header(backend, SERVER_DEVICE_CLOSED, 0, false) == SIZE_MAX) { return -1; } -- cgit v1.2.3