coverity bugfix from the kernel

main
Dave Airlie 2006-04-05 08:34:24 +00:00
parent 4f53bf3545
commit 299aad03c2
1 changed files with 2 additions and 2 deletions

View File

@ -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) {