summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/gma500/psb_drv.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-09-09 14:56:42 +0300
committerHans de Goede <hdegoede@redhat.com>2022-09-17 16:20:40 +0300
commit49da26d7b418cfc99ad2473a2e3dee2e08c5ba4a (patch)
tree61301a0cccff18682f0a842ebce5fd3b868b2339 /drivers/gpu/drm/gma500/psb_drv.c
parent9b6a16575ebf23a98a9ff84aedde9f3b25731714 (diff)
downloadlinux-49da26d7b418cfc99ad2473a2e3dee2e08c5ba4a.tar.xz
drm/gma500: Remove runtime_allowed dead code in psb_unlocked_ioctl()
runtime_allowed is initialized to 0, so the runtime_allowed == 1 condition is never true making this dead code. Remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220909115646.99920-3-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_drv.c')
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index 54e756b48606..7a94e0d8fa6c 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -433,18 +433,7 @@ static inline void get_brightness(struct backlight_device *bd)
static long psb_unlocked_ioctl(struct file *filp, unsigned int cmd,
unsigned long arg)
{
- struct drm_file *file_priv = filp->private_data;
- struct drm_device *dev = file_priv->minor->dev;
- struct drm_psb_private *dev_priv = to_drm_psb_private(dev);
- static unsigned int runtime_allowed;
-
- if (runtime_allowed == 1 && dev_priv->is_lvds_on) {
- runtime_allowed++;
- pm_runtime_allow(dev->dev);
- dev_priv->rpm_enabled = 1;
- }
return drm_ioctl(filp, cmd, arg);
- /* FIXME: do we need to wrap the other side of this */
}
static int psb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)