mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
Do not use unitialized variable and remove duplicated line
This commit is contained in:
parent
278d4bcfe9
commit
8a7935a23b
@ -1788,7 +1788,6 @@ int config_parse_unit_requires_mounts_for(
|
||||
char *state;
|
||||
size_t l;
|
||||
char *w;
|
||||
int r;
|
||||
|
||||
assert(filename);
|
||||
assert(lvalue);
|
||||
@ -1796,6 +1795,7 @@ int config_parse_unit_requires_mounts_for(
|
||||
assert(data);
|
||||
|
||||
FOREACH_WORD_QUOTED(w, l, rvalue, state) {
|
||||
int r;
|
||||
_cleanup_free_ char *n;
|
||||
|
||||
n = strndup(w, l);
|
||||
@ -1816,7 +1816,7 @@ int config_parse_unit_requires_mounts_for(
|
||||
}
|
||||
}
|
||||
|
||||
return r;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int config_parse_documentation(const char *unit,
|
||||
|
@ -1270,7 +1270,6 @@ int process_event(Server *s, struct epoll_event *ev) {
|
||||
if ((ev->events|EPOLLIN|EPOLLHUP) != (EPOLLIN|EPOLLHUP)) {
|
||||
log_error("Got invalid event from epoll for %s: %"PRIx32,
|
||||
"stdout stream", ev->events);
|
||||
log_error("Got invalid event from epoll.");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user