summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/backlight/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index f9e4f83ab9..2e2938674d 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -200,7 +200,7 @@ static int validate_device(sd_device *device) {
if (find_pci_or_platform_parent(other, &other_parent) < 0)
continue;
- if (same_device(parent, other_parent)) {
+ if (same_device(parent, other_parent) > 0) {
const char *device_sysname = NULL, *other_sysname = NULL;
/* Both have the same PCI parent, that means we are out. */