summaryrefslogtreecommitdiff
path: root/src/login/logind-device.c
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2019-10-21 17:13:57 -0700
committerGitHub <noreply@github.com>2019-10-21 17:13:57 -0700
commit5b90e5f3f52d11fa115fdb3cd78f657059ae5f34 (patch)
tree426074688fe2d55d994951e23c3b4483ef56f65f /src/login/logind-device.c
parent68805580209cfaa50b2400d1a2e6c66500001395 (diff)
parente48a1e34234385b5f5caeae37d733660c0895180 (diff)
downloadsystemd-5b90e5f3f52d11fa115fdb3cd78f657059ae5f34.tar.gz
Merge pull request #13811 from keszybz/logind-signal-emitting-fix
Logind signal emitting fix
Diffstat (limited to 'src/login/logind-device.c')
-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);