drm: don't cast a pointer to pointer of list_head
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 16 Dec 2007 23:50:45 +0000 (09:50 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 16 Dec 2007 23:50:45 +0000 (09:50 +1000)
commit2db6400396ea5c8a5ce54fe9e211b9d01a11d506
treeaea0a8758756df4b81fe117550720088e2defe8c
parent6180dbda203161b8926513cca4ee963bbbf18cc9
drm: don't cast a pointer to pointer of list_head

The casting is safe only when the list_head member is the first member of
the structure.
shared-core/i915_irq.c