summaryrefslogtreecommitdiffstats
path: root/src/backlight
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-07-12 08:52:12 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-07-12 20:05:18 +0200
commita1af83728f49c0b7487368d54cab90c8c87ac3f6 (patch)
treeda4b319e8a2fc0c513ca1a07852a6442352ff883 /src/backlight
parentseccomp: add arm_fadvise64_64 to system-service group (diff)
downloadsystemd-a1af83728f49c0b7487368d54cab90c8c87ac3f6.tar.xz
systemd-a1af83728f49c0b7487368d54cab90c8c87ac3f6.zip
device-util: Declare iterator variables inline
Diffstat (limited to 'src/backlight')
-rw-r--r--src/backlight/backlight.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index e66477f328..a384208879 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -47,7 +47,6 @@ static int help(void) {
static int has_multiple_graphics_cards(void) {
_cleanup_(sd_device_enumerator_unrefp) sd_device_enumerator *e = NULL;
- sd_device *dev;
bool found = false;
int r;
@@ -173,7 +172,7 @@ static int same_device(sd_device *a, sd_device *b) {
static int validate_device(sd_device *device) {
_cleanup_(sd_device_enumerator_unrefp) sd_device_enumerator *enumerate = NULL;
const char *v, *sysname, *subsystem;
- sd_device *parent, *other;
+ sd_device *parent;
int r;
assert(device);