nine: 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:58:24 +01:00 committed by Marge Bot
parent 55a072cb16
commit c5ecb59d97
2 changed files with 4 additions and 4 deletions

View File

@ -99,9 +99,9 @@ NineBaseTexture9_dtor( struct NineBaseTexture9 *This )
pipe_sampler_view_reference(&This->view[0], NULL);
pipe_sampler_view_reference(&This->view[1], NULL);
if (This->list.prev != NULL && This->list.next != NULL)
if (list_is_linked(&This->list))
list_del(&This->list);
if (This->list2.prev != NULL && This->list2.next != NULL)
if (list_is_linked(&This->list2))
list_del(&This->list2);
NineResource9_dtor(&This->base);

View File

@ -161,9 +161,9 @@ NineBuffer9_dtor( struct NineBuffer9 *This )
if (This->base.pool == D3DPOOL_MANAGED) {
if (This->managed.data)
align_free(This->managed.data);
if (This->managed.list.prev != NULL && This->managed.list.next != NULL)
if (list_is_linked(&This->managed.list))
list_del(&This->managed.list);
if (This->managed.list2.prev != NULL && This->managed.list2.next != NULL)
if (list_is_linked(&This->managed.list2))
list_del(&This->managed.list2);
}