summaryrefslogtreecommitdiffstats
path: root/src/backlight/backlight.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-23 16:30:23 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-26 14:08:46 +0100
commit49fe5c099639aa2111efb56c6ac609955a279279 (patch)
treebff451fbe68b0aa57fe8ad198695384eab264545 /src/backlight/backlight.c
parentstrv: add new macro STARTSWITH_SET() (diff)
downloadsystemd-49fe5c099639aa2111efb56c6ac609955a279279.tar.xz
systemd-49fe5c099639aa2111efb56c6ac609955a279279.zip
tree-wide: port various places over to STARTSWITH_SET()
Diffstat (limited to 'src/backlight/backlight.c')
-rw-r--r--src/backlight/backlight.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index a866c68823..780ad56eb1 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -44,9 +44,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) {
c += strspn(c, DIGITS);
if (*c == '-') {
/* A connector DRM device, let's ignore all but LVDS and eDP! */
-
- if (!startswith(c, "-LVDS-") &&
- !startswith(c, "-Embedded DisplayPort-"))
+ if (!STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-"))
return -EOPNOTSUPP;
}