diff options
author | Nicolai Hähnle <[email protected]> | 2016-06-28 09:40:26 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-07-06 10:42:48 +0200 |
commit | 3a1da559c5a4aaf77106ecefbaf03cb0aaf35495 (patch) | |
tree | 63065ea48a0f6903c35756901bc6d316822c4299 | |
parent | 5b87eef031e8ebfee4f868cdc856a76faff87930 (diff) |
gallium/radeon: remove redundant null-pointer check
v2: keep using r600_texture_reference
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 0a25dbef991..614dd0e87f0 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -560,8 +560,7 @@ static void r600_texture_destroy(struct pipe_screen *screen, struct r600_texture *rtex = (struct r600_texture*)ptex; struct r600_resource *resource = &rtex->resource; - if (rtex->flushed_depth_texture) - r600_texture_reference(&rtex->flushed_depth_texture, NULL); + r600_texture_reference(&rtex->flushed_depth_texture, NULL); r600_resource_reference(&rtex->htile_buffer, NULL); if (rtex->cmask_buffer != &rtex->resource) { |