summaryrefslogtreecommitdiff
path: root/radeon.c
diff options
context:
space:
mode:
Diffstat (limited to 'radeon.c')
-rw-r--r--radeon.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/radeon.c b/radeon.c
index 84b01c5..68445c1 100644
--- a/radeon.c
+++ b/radeon.c
@@ -12,11 +12,8 @@ static const uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMA
static int radeon_init(struct driver *drv)
{
- int ret;
- ret = drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
- &LINEAR_METADATA, BO_USE_RENDER_MASK);
- if (ret)
- return ret;
+ drv_add_combinations(drv, render_target_formats, ARRAY_SIZE(render_target_formats),
+ &LINEAR_METADATA, BO_USE_RENDER_MASK);
return drv_modify_linear_combinations(drv);
}