various: remove assignments of unread variables

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-09-22 17:58:11 +02:00
parent 4ffd4705fb
commit afa8ffae99
3 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) {
} else if (streq(subsystem, "pci") &&
sd_device_get_sysattr_value(parent, "class", &value) >= 0) {
unsigned long class = 0;
unsigned long class;
r = safe_atolu(value, &class);
if (r < 0)