Skip to contentSkip to conversation

drm/amdgpu Remove now unneeded variable adev

PATCH In review Mike Lothian 1 participant 2 messages Sep 23, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu Remove now unneeded variable adev

Since commit 62336cc1ca1b96f33e3344ca6e910d30adca749a adev is now no longer required in amdgpu_drv.c

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -1
index 5b592af..a5ec1f9 100644
@@ -481,7 +481,6 @@ 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.
Signature · 6 lines
2.10.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

Sorry please ignore this - follow up momentarily

Quoted 22 lines · On Fri, 23 Sep 2016 at 21:14 Mike Lothian <[email protected]> wrote:

Since commit 62336cc1ca1b96f33e3344ca6e910d30adca749a adev is now no longer required in amdgpu_drv.c

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -2
index 5b592af..a5ec1f9 100644
@@ -481,7 +481,6 @@ 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.
--
Quoted 3 lines

2.10.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel