summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-21 09:33:19 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-21 09:33:19 +0200
commit4b9e5848e31cb2efb606a5292a2d2abb6ba35040 (patch)
tree2438eee1174aa60bc8e821b688c08950612f04bb
parentd2fc7d22cbe4f72c5993cd02b414aad60674c7f7 (diff)
downloadsystemd-4b9e5848e31cb2efb606a5292a2d2abb6ba35040.tar.gz
logind: drop {}
-rw-r--r--src/login/logind-device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind-device.c b/src/login/logind-device.c
index 20108544aa..9a62217290 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);