various: remove assignments of unread variables
This commit is contained in:
parent
4ffd4705fb
commit
afa8ffae99
|
@ -199,7 +199,6 @@ static int exec_process(const char *name, char **argv, char **env, int start_fd,
|
||||||
return log_error_errno(errno, "Failed to dup connection: %m");
|
return log_error_errno(errno, "Failed to dup connection: %m");
|
||||||
|
|
||||||
safe_close(start_fd);
|
safe_close(start_fd);
|
||||||
start_fd = SD_LISTEN_FDS_START;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (asprintf((char **) (envp + n_env++), "LISTEN_FDS=%zu", n_fds) < 0)
|
if (asprintf((char **) (envp + n_env++), "LISTEN_FDS=%zu", n_fds) < 0)
|
||||||
|
|
|
@ -79,7 +79,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) {
|
||||||
|
|
||||||
} else if (streq(subsystem, "pci") &&
|
} else if (streq(subsystem, "pci") &&
|
||||||
sd_device_get_sysattr_value(parent, "class", &value) >= 0) {
|
sd_device_get_sysattr_value(parent, "class", &value) >= 0) {
|
||||||
unsigned long class = 0;
|
unsigned long class;
|
||||||
|
|
||||||
r = safe_atolu(value, &class);
|
r = safe_atolu(value, &class);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
|
|
@ -689,7 +689,6 @@ _public_ int sd_radv_add_route_prefix(sd_radv *ra, sd_radv_route_prefix *p, int
|
||||||
LIST_APPEND(prefix, ra->route_prefixes, p);
|
LIST_APPEND(prefix, ra->route_prefixes, p);
|
||||||
ra->n_route_prefixes++;
|
ra->n_route_prefixes++;
|
||||||
|
|
||||||
cur = p;
|
|
||||||
if (!dynamic) {
|
if (!dynamic) {
|
||||||
log_radv("Added prefix %s/%u", strempty(pretty), p->opt.prefixlen);
|
log_radv("Added prefix %s/%u", strempty(pretty), p->opt.prefixlen);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue