From d17d66f0abb597584e0a15b5348f2709fe36a3d7 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 22 Feb 2021 23:25:00 +0900 Subject: backlight: reduce indentation a bit --- src/backlight/backlight.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/backlight') diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 2e2938674d..836dc37850 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -71,11 +71,9 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) { return -ENODATA; c += strspn(c, DIGITS); - if (*c == '-') { + if (*c == '-' && !STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-")) /* A connector DRM device, let's ignore all but LVDS and eDP! */ - if (!STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-")) - return -EOPNOTSUPP; - } + return -EOPNOTSUPP; } else if (streq(subsystem, "pci") && sd_device_get_sysattr_value(parent, "class", &value) >= 0) { -- cgit v1.2.1