From patchwork Tue Oct 11 09:36:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9370305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6928A60487 for ; Tue, 11 Oct 2016 09:36:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B00729BF2 for ; Tue, 11 Oct 2016 09:36:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4FD0929C1F; Tue, 11 Oct 2016 09:36:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A63F929BF2 for ; Tue, 11 Oct 2016 09:36:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DC136E639; Tue, 11 Oct 2016 09:36:19 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 81CE46E639 for ; Tue, 11 Oct 2016 09:36:17 +0000 (UTC) Received: by mail-lf0-x241.google.com with SMTP id b75so2649629lfg.3 for ; Tue, 11 Oct 2016 02:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id; bh=0aquZHbpLKwz3iSK6Q1EvL0VChGeLUxxX1TcQpG9+TE=; b=AdUFdp9g6KDMXPzJgmNY3bi7JK5XprfH4ASvRH2bC9zG1BcCL/GE5ZY1hLy84aBB+n Pk2le4PFk08KMUw2xEaz5QZ7r3AwsckDVJpBeOjHXVGMQzBOIHdf+d38XnZ+blnbZc// J69JG60h8P1Y5h/4Crp/S2Jb05Z7kVi5kilsU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0aquZHbpLKwz3iSK6Q1EvL0VChGeLUxxX1TcQpG9+TE=; b=byfudWJvYxbD+i8mKwTahWH9YckdzNrSETUbU81HWLFoel7K5RjmM1pJ26dEPl/mWl 8s6d8jF/HxisX5PFvTyAy9uMzKmE6R/G3bLNeuHECTSYmbGajM09UN6Yx6HDhCQYN36D lWIGnXiRVqDUDtVeV81hoVkQSR0c/pIDenuZl2ZIqU7wqN5uyEEeDLwp8Z86Y9ehDwnv WEwVLR4kvx2sgvl5jfUoMQIdzBtaChYSFs5Q4u0+RBmR/9y1j97ACBV0LjE7d/NlWGy9 cr0bxwN04IdEI1R4ZxjZwMXrc5kdf4bvpiUSZ49H0XSSVCwsMMKZ2oIBZHh39VwV31hi 2y3w== X-Gm-Message-State: AA6/9RkYA9JfhA+jV/ez1FCGVjPfVfoKEYV0Ylm6XW106as00BaejaJtobmFO3F4ypVx6A== X-Received: by 10.194.30.137 with SMTP id s9mr3664210wjh.77.1476178575534; Tue, 11 Oct 2016 02:36:15 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:56b5:0:ac27:b86c:7764:9429]) by smtp.gmail.com with ESMTPSA id za1sm785758wjb.8.2016.10.11.02.36.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Oct 2016 02:36:14 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Tue, 11 Oct 2016 11:36:08 +0200 Message-Id: <20161011093608.30453-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.9.3 Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH i-g-t] lib/chipset: Properly skip on non-Intel X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Random drive-by I noticed while hacking on piglit. Signed-off-by: Daniel Vetter Reviewed-by: Petri Latvala --- 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,