diff options
author | Emil Velikov <[email protected]> | 2017-06-20 15:22:39 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-06-26 12:40:22 +0100 |
commit | d42b09580a5270e8906dad4b923f320d1de18167 (patch) | |
tree | 9f333a6b2c2a875e6da62ba1fed1896d82440671 /src/egl/drivers/dri2/platform_android.c | |
parent | 860919a3b237386cba5b2951ae520bf6734fd17e (diff) |
egl: drop _eglInitImage() return type
Function cannot fail and always returns true.
v2: Inline the one line function in the header
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/platform_android.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_android.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index acd45dab4d7..aef8a105f86 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -843,10 +843,7 @@ droid_create_image_from_name(_EGLDisplay *disp, _EGLContext *ctx, return NULL; } - if (!_eglInitImage(&dri2_img->base, disp)) { - free(dri2_img); - return NULL; - } + _eglInitImage(&dri2_img->base, disp); dri2_img->dri_image = dri2_dpy->image->createImageFromName(dri2_dpy->dri_screen, |