Skip to content

Commit afa8ffa

Browse files
committed
various: remove assignments of unread variables
1 parent 4ffd470 commit afa8ffa

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/activate/activate.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ static int exec_process(const char *name, char **argv, char **env, int start_fd,
199199
return log_error_errno(errno, "Failed to dup connection: %m");
200200

201201
safe_close(start_fd);
202-
start_fd = SD_LISTEN_FDS_START;
203202
}
204203

205204
if (asprintf((char **) (envp + n_env++), "LISTEN_FDS=%zu", n_fds) < 0)

src/backlight/backlight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) {
7979

8080
} else if (streq(subsystem, "pci") &&
8181
sd_device_get_sysattr_value(parent, "class", &value) >= 0) {
82-
unsigned long class = 0;
82+
unsigned long class;
8383

8484
r = safe_atolu(value, &class);
8585
if (r < 0)

src/libsystemd-network/sd-radv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ _public_ int sd_radv_add_route_prefix(sd_radv *ra, sd_radv_route_prefix *p, int
689689
LIST_APPEND(prefix, ra->route_prefixes, p);
690690
ra->n_route_prefixes++;
691691

692-
cur = p;
693692
if (!dynamic) {
694693
log_radv("Added prefix %s/%u", strempty(pretty), p->opt.prefixlen);
695694
return 0;

0 commit comments

Comments
 (0)