summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2011-01-18 09:44:04 -0500
committerMatthew Garrett <mjg@redhat.com>2011-01-18 09:44:04 -0500
commitdab4b9ade68272bde11f2b3e0cd51f9631e4d266 (patch)
treeb820336e381765e48712fc2b5c2507927d625a82
parentcbc204966677cc2da16ac3aede1b4b8103b6ce8c (diff)
Fix the checking for the card/connector case
-rw-r--r--libbacklight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacklight.c b/libbacklight.c
index be2e372..d7018bc 100644
--- a/libbacklight.c
+++ b/libbacklight.c
@@ -167,7 +167,7 @@ struct backlight *backlight_init(struct pci_device *dev, int card,
asprintf(&pci_name, "%04x:%02x:%02x.%d", dev->domain, dev->bus,
dev->dev, dev->func);
- if (card || connector_type || connector_type_id)
+ if (card)
asprintf(&drm_name, "card%d-%s-%d", card,
output_names[connector_type], connector_type_id);