From 4cd6f490976e5089358fdab4fe764bac05be40e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 21 Oct 2019 09:33:19 +0200 Subject: [PATCH] logind: drop {} (cherry picked from commit 4b9e5848e31cb2efb606a5292a2d2abb6ba35040) Gbp-Pq: Name logind-drop.patch --- src/login/logind-device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/login/logind-device.c b/src/login/logind-device.c index 20108544..9a622172 100644 --- a/src/login/logind-device.c +++ b/src/login/logind-device.c @@ -91,14 +91,13 @@ void device_attach(Device *d, Seat *s) { if (d->master || !s->devices) LIST_PREPEND(devices, s->devices, d); - else { + else LIST_FOREACH(devices, i, s->devices) { if (!i->devices_next || !i->master) { LIST_INSERT_AFTER(devices, s->devices, i, d); break; } } - } if (!had_master && d->master && s->started) { seat_save(s); -- 2.30.2