logind: drop {}

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-10-21 09:33:19 +02:00
parent d2fc7d22cb
commit 4b9e5848e3
+1 -2
View File
@@ -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);