From a1af83728f49c0b7487368d54cab90c8c87ac3f6 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 12 Jul 2023 08:52:12 +0200 Subject: device-util: Declare iterator variables inline --- src/backlight/backlight.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backlight') 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); -- cgit v1.2.3