From: Marcin Ślusarz Date: Tue, 15 Dec 2020 14:59:47 +0000 (+0100) Subject: r600: use list_is_linked X-Git-Tag: upstream/21.0.0~1259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=240322fad2a34d1d2c80d87ed70336796efb3ea7;p=platform%2Fupstream%2Fmesa.git r600: use list_is_linked Signed-off-by: Marcin Ślusarz Reviewed-by: Timothy Arceri Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index df27f05..8d12c66 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -377,7 +377,7 @@ error: void r600_pipe_shader_destroy(struct pipe_context *ctx UNUSED, struct r600_pipe_shader *shader) { r600_resource_reference(&shader->bo, NULL); - if (shader->shader.bc.cf.next) + if (list_is_linked(&shader->shader.bc.cf)) r600_bytecode_clear(&shader->shader.bc); r600_release_command_buffer(&shader->command_buffer); }