drm: Fix build with gcc, broken with r258549
The code was easier to read without __DECONST and clang didn't report any error. I thought the cast was enough... MFC after: 3 days X-MFC-With: r258549
This commit is contained in:
parent
9e684a3a79
commit
d52ba34e7b
@ -42,8 +42,8 @@ drm_le_cmp(void *priv, const void *d1, const void *d2)
|
||||
struct drm_list_sort_thunk *thunk;
|
||||
|
||||
thunk = priv;
|
||||
le1 = *(struct list_head **)d1;
|
||||
le2 = *(struct list_head **)d2;
|
||||
le1 = *(__DECONST(struct list_head **, d1));
|
||||
le2 = *(__DECONST(struct list_head **, d2));
|
||||
return ((thunk->cmp)(thunk->priv, le1, le2));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user