summaryrefslogtreecommitdiff
path: root/evdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'evdi.c')
-rw-r--r--evdi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/evdi.c b/evdi.c
index 3bac658..bfa62a0 100644
--- a/evdi.c
+++ b/evdi.c
@@ -12,11 +12,8 @@ static const uint32_t render_target_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMA
static int evdi_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);
}