mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 11:55:23 +03:00
logind: fix sysfs change trigger code
We can't create files in sysfs, hence don't bother. Also if we ignore the return value, do so explicitly by casting to void.
This commit is contained in:
parent
98bad05e75
commit
ddd59d0c7f
@ -1282,7 +1282,7 @@ static int trigger_device(Manager *m, struct udev_device *d) {
|
||||
if (!t)
|
||||
return -ENOMEM;
|
||||
|
||||
write_string_file(t, "change", WRITE_STRING_FILE_CREATE);
|
||||
(void) write_string_file(t, "change", 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user