From: Zbigniew Jędrzejewski-Szmek Date: Mon, 21 Oct 2019 07:33:19 +0000 (+0200) Subject: logind: drop {} X-Git-Tag: archive/raspbian/243-8+rpi1^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4cd6f490976e5089358fdab4fe764bac05be40e5;p=systemd.git logind: drop {} (cherry picked from commit 4b9e5848e31cb2efb606a5292a2d2abb6ba35040) Gbp-Pq: Name logind-drop.patch --- 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);