summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-04-05 08:34:24 +0000
committerDave Airlie <airlied@linux.ie>2006-04-05 08:34:24 +0000
commit299aad03c2148bb3e9efdb29b89e70b712a2e055 (patch)
treed68eb8cb2ec0a2192a0141e676335ca32889afd4 /shared-core
parent4f53bf35454422db7cdd8db52b95016a9ec0dd2e (diff)
coverity bugfix from the kernel
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/via_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/via_irq.c b/shared-core/via_irq.c
index 3628d601..aaba0cb6 100644
--- a/shared-core/via_irq.c
+++ b/shared-core/via_irq.c
@@ -206,7 +206,7 @@ via_driver_irq_wait(drm_device_t * dev, unsigned int irq, int force_sequence,
unsigned int cur_irq_sequence;
drm_via_irq_t *cur_irq = dev_priv->via_irqs;
int ret = 0;
- maskarray_t *masks = dev_priv->irq_masks;
+ maskarray_t *masks;
int real_irq;
DRM_DEBUG("%s\n", __FUNCTION__);
@@ -230,7 +230,7 @@ via_driver_irq_wait(drm_device_t * dev, unsigned int irq, int force_sequence,
return DRM_ERR(EINVAL);
}
-
+ masks = dev_priv->irq_masks;
cur_irq += real_irq;
if (masks[real_irq][2] && !force_sequence) {