From patchwork Fri Sep 23 20:47:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Lothian X-Patchwork-Id: 9348865 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 628DD607F2 for ; Fri, 23 Sep 2016 20:47:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 527C22AD7C for ; Fri, 23 Sep 2016 20:47:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46BA72ADE5; Fri, 23 Sep 2016 20:47:50 +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 C0F6A2AD7C for ; Fri, 23 Sep 2016 20:47:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B7576E080; Fri, 23 Sep 2016 20:47:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8C7186E080 for ; Fri, 23 Sep 2016 20:47:46 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id w84so4493656wmg.0 for ; Fri, 23 Sep 2016 13:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fireburn-co-uk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=HjBi0O+1cS7TP8P8PgQAkMNnNqohtjCkss5CUEj9IcY=; b=gSen6AiXL4tsrfsXfDvJd0zA61jDkUNkrqSgsmqCyh4N5al+qyoWOTPIjgL+kD+MPl +dV8IEMRAlI813hlFmAg6Zw8ZlUGJQRpu2V4hRYa4q0prxGFCJUrOcWLt8Qnsp1uckQ7 E11qVJ0ipSCrnn6XlECT/rbtZD+7X3ZzeEZ+uZAxqLU42tdZE+kG9BqJ1T9butksuwYD sL1F5AfTqXvBhDcVpNlFa8s8ZHZqAp5HHdOCvFx4X0sJh9Npp6Vgbq+HAGvbJTiNRszf P66uvdxaCxVOMUvffLjIVkPm7oByMBsy3P/FOu5dmhlLF6Rwg1/pHLmlLKS586Z2t7SX 0T6A== 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=HjBi0O+1cS7TP8P8PgQAkMNnNqohtjCkss5CUEj9IcY=; b=gXbHmzLmd6vUPEfIf2LaXs1AcMlGTMDmrE42a3F1BbXK/nem51mb8AhtIu7ooShcuX 69AVoH7K5kprB1X2ptweOH+l1Bwl6V5ZL2wuR0/Mo9dCe6NZgw/VKXNFu6xWaStidKtW oeKLbAvT4WaWtlpQQJceilqZ4kVBj5dQ97tWS5htWQ/cXhV5v8BuyMqHKxUDHuzUj+ud nZJsR0to97CZ6KzTrWWwKVuVKuiF6EDLStlzBGJMHjczHdGknp8g1Y5qwVI1m0Zb9Ryj 2jrwTCHVR3l+iyntzym7GwK/QBTQILXFNUi5y6dB5YEFobgvuf7y6nHRPzKpgcJy6zcG XptA== X-Gm-Message-State: AA6/9Rnp7ekKmPtD4hFNQTAiqKdN05UUYJcSkW4pA7v1GnJ2ccOZnjTBHW8WWavf7vxVDQ== X-Received: by 10.28.113.80 with SMTP id m77mr4668459wmc.18.1474663664864; Fri, 23 Sep 2016 13:47:44 -0700 (PDT) Received: from axion.fireburn.co.uk (host86-147-79-201.range86-147.btcentralplus.com. [86.147.79.201]) by smtp.gmail.com with ESMTPSA id c5sm8890811wjw.29.2016.09.23.13.47.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 13:47:44 -0700 (PDT) From: Mike Lothian To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/amdgpu: Removed unneeded variables adev and dev Date: Fri, 23 Sep 2016 21:47:07 +0100 Message-Id: <20160923204707.16666-1-mike@fireburn.co.uk> X-Mailer: git-send-email 2.10.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Since commit 62336cc1ca1b96f33e3344ca6e910d30adca749a the variables adev and dev are no longer required Signed-off-by: Mike Lothian --- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 5b592af..2be20b4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -480,9 +480,6 @@ amdgpu_pci_remove(struct pci_dev *pdev) static void amdgpu_pci_shutdown(struct pci_dev *pdev) { - struct drm_device *dev = pci_get_drvdata(pdev); - struct amdgpu_device *adev = dev->dev_private; - /* if we are running in a VM, make sure the device * torn down properly on reboot/shutdown. * unfortunately we can't detect certain