From patchwork Fri Jan 15 18:15:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363729 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp91626jap; Fri, 15 Jan 2021 10:17:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAHyifm9fgnoQqbCsvL7HBHcgM5LCFi1q9shgDhl7js7GejYYpcUFhLiaBY8l65Xkl6hfY X-Received: by 2002:a17:90a:b110:: with SMTP id z16mr11629099pjq.167.1610734620025; Fri, 15 Jan 2021 10:17:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734620; cv=none; d=google.com; s=arc-20160816; b=Iwg0TPwmzR28jsEDNfyzLH4l8EV9C0cw5/ZbNFHkCipybyaqGhFg+zt8UHXuflZ0dc hNop+cDa3lP2sPwPA1SO2kQZOHt0FROrSnfgO05PXxA30afDTvkDz51x9PhGI2ahYUtj WdZPPdMexpkwEuku/Os+12/6/LjpbZgPwRyg9BPoAZo5uPgHV5jGecZxJ7cN4T1TXFQn sfDGSHRsqTkPvvLnMawblYXMFH5HEQhm0EvHFiAp1UBtJGjj0ZJq9rStCJi7BlWNYD2G XHlsf7bA95fCM42X80yWzf9EAyWy3dMFzxca4mBS24N+prYiapMHOhXtT6bVZv5pik3P J2dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=ko8dZJ6zFDc/usjUMAnmM9h6JioIKwisV6OiCqh5Njc=; b=TYln4sPX4tf/KuBMHlrf7ZDdpSUG4iqY4/IqgXAQhvEBp8vbpNPNfpvMUgB2rywAEc E0Iuz4MR00Qgr0YeJfenW91EVCKTIrWRWFkmiKyMtyv1BOEut7/8KjRSRV/Gw3WvEfWv KyKZfD3+GEYZe6tFYaYOh9gTJOiA5aJdfIIQhcsWQ7xBAysoXvP24kZrDKA8dKJHv7vK JmtrSHqcmvsS0ODhEhjD3buXutaLPHAwugrfN4++SoAHmGgOf5mEbca1tvILAWjfyO97 4Ve8QnSfBpQygmaZoWbUrA4woxq1K7ytbHrD+3Obghryj5BxJ8TIYzo3NQ836CUahGLj bgMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yL85iXlS; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 23si10719175pju.88.2021.01.15.10.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:17:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yL85iXlS; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6354B6E504; Fri, 15 Jan 2021 18:16:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by gabe.freedesktop.org (Postfix) with ESMTPS id A348A6E4EA for ; Fri, 15 Jan 2021 18:16:44 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id 190so8232582wmz.0 for ; Fri, 15 Jan 2021 10:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j+QQ91dB4nAV9iX95BjLXpaQb9N2TCvRIGQTNY+K7sU=; b=yL85iXlSpJyIEsW9uR5KjI1ME5UqZGtzQv4FY99XBi+FD088mPsLJUgEUFKevvrlE9 ksl9DXvhysqqBdDc7ZadLjyb25WhWQ3i98QOp0XqAdIZxIWspprCXgzshIS98HW4wMGh I+dGjog07idrdB7GQ459SKQnXFCQ4I9gK+KFnSmHEK1XhiM5kcv9UoCyCxCQC61JS0ll ++XOFxnTRs1eBVYdPEs8eE+RG4iiu7oN+whS/TdHU+B6/+ipOqkC164lqBL+udM5S+Pe D+5z0HQ/r2jtn0PRy9nwsj2+X61EY1IqPKGMyzXLvzaeE1LhdUG1dXwChy5gE9CV1QlA lmVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j+QQ91dB4nAV9iX95BjLXpaQb9N2TCvRIGQTNY+K7sU=; b=mqaCrIpqoR8pKbc0nPG3jGJbpTEXKbTvtewNe4AnL4nWWWKaDZXFj1hF1q/ercpEOb 5W3s0Xb7pDBPajALQMsOg7C1QBXV+gBqQ9Yhv83yJ4tvJD/WGepv9VWcJgetWMybVbNT hVWw5sFv7GZUvAR28udDffm3dbxuetxNBfZLDl8+TJ/7ge6baPBd4vvq78eBxXGeqf0Q UBw50L/QB1iTxiOEDK21qtX1aWwb3Qz6dO6J2NpA6TCgjsywi5EGkfeqLOnOQq/5VZqG 2rKGeomQdLsUZlsjtpTL+M52Y0pCm8GTy01h9b9644W/J/zSuzRS6URThrS9Wg5XNOhY vQ7Q== X-Gm-Message-State: AOAM533AatNH4Guu43x7L1KQZk8suRMqLOQ+UnG73204syYog6F0hwN/ TDGDkfpjC9tUPFMvO2wErMTd2A== X-Received: by 2002:a1c:4b14:: with SMTP id y20mr2838766wma.6.1610734603340; Fri, 15 Jan 2021 10:16:43 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id b133sm14405979wme.33.2021.01.15.10.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/29] drm/nouveau/nouveau_bios: Remove unused variable 'pdev' from 'nouveau_bios_init()' Date: Fri, 15 Jan 2021 18:15:59 +0000 Message-Id: <20210115181601.3432599-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181601.3432599-1-lee.jones@linaro.org> References: <20210115181601.3432599-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_bios.c: In function ‘nouveau_bios_init’: drivers/gpu/drm/nouveau/nouveau_bios.c:2086:18: warning: variable ‘pdev’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_bios.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index 7cc683b8dc7a6..e8c445eb11004 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -2083,13 +2083,11 @@ nouveau_bios_init(struct drm_device *dev) { struct nouveau_drm *drm = nouveau_drm(dev); struct nvbios *bios = &drm->vbios; - struct pci_dev *pdev; int ret; /* only relevant for PCI devices */ if (!dev_is_pci(dev->dev)) return 0; - pdev = to_pci_dev(dev->dev); if (!NVInitVBIOS(dev)) return -ENODEV;