summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/radeon_irq.c b/shared-core/radeon_irq.c
index a766f0ed..69569961 100644
--- a/shared-core/radeon_irq.c
+++ b/shared-core/radeon_irq.c
@@ -255,7 +255,7 @@ u32 radeon_get_vblank_counter(struct drm_device *dev, int crtc)
{
drm_radeon_private_t *dev_priv = dev->dev_private;
- if (!dev_priv || crtc < 0 || crtc > 1) {
+ if (!dev_priv) {
DRM_ERROR("called with no initialization\n");
return -EINVAL;
}