mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 08:30:57 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user