]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: drop {}
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2019 07:33:19 +0000 (09:33 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2019 07:33:19 +0000 (09:33 +0200)
src/login/logind-device.c

index 20108544aad6de2b6a90cde84b7f40301088e906..9a62217290534aba883da27ae13b1e8ff2d8c75b 100644 (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);