diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-22 23:25:00 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-22 23:25:00 +0900 |
commit | d17d66f0abb597584e0a15b5348f2709fe36a3d7 (patch) | |
tree | 9101c11ac9d2a6782dd4e46760fe9e60387ed1bb /src/backlight | |
parent | ba6c9b79945109ec14f17b48e9b1931c037ebc90 (diff) | |
download | systemd-d17d66f0abb597584e0a15b5348f2709fe36a3d7.tar.gz |
backlight: reduce indentation a bit
Diffstat (limited to 'src/backlight')
-rw-r--r-- | src/backlight/backlight.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) { |