projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a0335
)
logind: drop {}
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 21 Oct 2019 07:33:19 +0000
(09:33 +0200)
committer
Michael Biebl
<biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000
(08:17 +0000)
(cherry picked from commit
4b9e5848e31cb2efb606a5292a2d2abb6ba35040
)
Gbp-Pq: Name logind-drop.patch
src/login/logind-device.c
patch
|
blob
|
history
diff --git
a/src/login/logind-device.c
b/src/login/logind-device.c
index 20108544aad6de2b6a90cde84b7f40301088e906..9a62217290534aba883da27ae13b1e8ff2d8c75b 100644
(file)
--- 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);