[PATCH i-g-t] lib/chipset: Properly skip on non-Intel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Random drive-by I noticed while hacking on piglit.

Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
---
 lib/intel_chipset.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/intel_chipset.c b/lib/intel_chipset.c
index 777dfa73da80..ab35fa70c167 100644
--- a/lib/intel_chipset.c
+++ b/lib/intel_chipset.c
@@ -100,8 +100,7 @@ intel_get_pci_device(void)
 		pci_dev = pci_device_next(iter);
 		pci_iterator_destroy(iter);
 	}
-	if (pci_dev == NULL)
-		errx(1, "Couldn't find graphics card");
+	igt_require_f(pci_dev, "Couldn't find Intel graphics card\n");
 
 	error = pci_device_probe(pci_dev);
 	igt_fail_on_f(error != 0,
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux