drm: don't cast a pointer to pointer of list_head
[sfrench/cifs-2.6.git] / drivers / char / drm / i915_irq.c
index 3f02ff593bbd5a959237fa43c2c04d73635d9c37..b273fe4e1345f49b5d009950f77f38bb3269a944 100644 (file)
@@ -555,7 +555,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data,
 
        spin_lock_irqsave(&dev_priv->swaps_lock, irqflags);
 
-       list_add_tail((struct list_head *)vbl_swap, &dev_priv->vbl_swaps.head);
+       list_add_tail(&vbl_swap->head, &dev_priv->vbl_swaps.head);
        dev_priv->swaps_pending++;
 
        spin_unlock_irqrestore(&dev_priv->swaps_lock, irqflags);