OSDN Git Service

drm/gma500: Remove runtime_allowed dead code in psb_unlocked_ioctl()
authorHans de Goede <hdegoede@redhat.com>
Fri, 9 Sep 2022 11:56:42 +0000 (13:56 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sat, 17 Sep 2022 13:20:40 +0000 (15:20 +0200)
commit49da26d7b418cfc99ad2473a2e3dee2e08c5ba4a
tree61301a0cccff18682f0a842ebce5fd3b868b2339
parent9b6a16575ebf23a98a9ff84aedde9f3b25731714
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
drivers/gpu/drm/gma500/psb_drv.c