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:
Marcin Ślusarz 2020-12-15 15:59:34 +01:00 committed by Marge Bot
parent aa7b497d9a
commit 1d2077c3d6
1 changed files with 1 additions and 1 deletions

View File

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