summaryrefslogtreecommitdiff
path: root/evdi.c
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-11-03 17:18:36 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-11-16 13:52:02 -0800
commitd300145b093cf67277648a664d3748b881d4a315 (patch)
treeb33ac1e2eafebb020d81ee8c7599fa844f583c0b /evdi.c
parent1ef809ecd434bfc0fd1d669ba925d58b1255d163 (diff)
minigbm: make drv_add_combinations return nothing
Two reasons for this: 1) We can use drv_array for driver combinations (see next patch) 2) It's less verbose. BUG=chromium:764871 TEST=gbmtest passes Change-Id: I39bea6e2e9e4c76d2ca78566926a79bdc17f11d0 Reviewed-on: https://chromium-review.googlesource.com/758148 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
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);
}