udev: use SYNTHETIC_ERRNO() at one more place

This commit is contained in:
Yu Watanabe
2023-05-16 16:37:28 +09:00
parent f44744ff51
commit b3cfe59001
+1 -2
View File
@@ -87,8 +87,7 @@ int builtin_main(int argc, char *argv[], void *userdata) {
cmd = udev_builtin_lookup(arg_command);
if (cmd < 0) {
log_error("Unknown command '%s'", arg_command);
r = -EINVAL;
r = log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown command '%s'", arg_command);
goto finish;
}