Mesa (master): iris: use list_is_linked
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 18 02:04:48 UTC 2020
Module: Mesa
Branch: master
Commit: 1d2077c3d688a3b7929075fe2258a2e0d41e6bdd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d2077c3d688a3b7929075fe2258a2e0d41e6bdd
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date: Tue Dec 15 15:59:34 2020 +0100
iris: use list_is_linked
Signed-off-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8110>
---
src/gallium/drivers/iris/iris_bufmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c
index 46fdf655783..9a67602ac02 100644
--- a/src/gallium/drivers/iris/iris_bufmgr.c
+++ b/src/gallium/drivers/iris/iris_bufmgr.c
@@ -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);
More information about the mesa-commit
mailing list