]> Git Repo - linux.git/commitdiff
gpu: drm: radeon: radeon_drv: Remove unused variable 'ret'
authorLee Jones <[email protected]>
Thu, 5 Nov 2020 14:45:13 +0000 (14:45 +0000)
committerAlex Deucher <[email protected]>
Fri, 13 Nov 2020 05:03:34 +0000 (00:03 -0500)
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/radeon/radeon_drv.c: In function ‘radeon_pmops_runtime_suspend’:
 drivers/gpu/drm/radeon/radeon_drv.c:455:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Alex Deucher <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Gareth Hughes <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/radeon/radeon_drv.c

index 65061c949aeea6dbd0d9dbfd996f208269e376ba..f5f1cb700d87349c79cce48f35c86a34202a5f90 100644 (file)
@@ -452,7 +452,6 @@ static int radeon_pmops_runtime_suspend(struct device *dev)
 {
        struct pci_dev *pdev = to_pci_dev(dev);
        struct drm_device *drm_dev = pci_get_drvdata(pdev);
-       int ret;
 
        if (!radeon_is_px(drm_dev)) {
                pm_runtime_forbid(dev);
@@ -462,7 +461,7 @@ static int radeon_pmops_runtime_suspend(struct device *dev)
        drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;
        drm_kms_helper_poll_disable(drm_dev);
 
-       ret = radeon_suspend_kms(drm_dev, false, false, false);
+       radeon_suspend_kms(drm_dev, false, false, false);
        pci_save_state(pdev);
        pci_disable_device(pdev);
        pci_ignore_hotplug(pdev);
This page took 0.054159 seconds and 4 git commands to generate.