iris: use list_is_linked
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110>
This commit is contained in:
parent
aa7b497d9a
commit
1d2077c3d6
|
@ -206,7 +206,7 @@ find_and_ref_external_bo(struct hash_table *ht, unsigned int key)
|
|||
* we hadn't yet closed it...and then reimported the same BO. If it
|
||||
* is, then remove it since it's now been resurrected.
|
||||
*/
|
||||
if (bo->head.next)
|
||||
if (list_is_linked(&bo->head))
|
||||
list_del(&bo->head);
|
||||
|
||||
iris_bo_reference(bo);
|
||||
|
|
Loading…
Reference in New Issue