From d42b09580a5270e8906dad4b923f320d1de18167 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 20 Jun 2017 15:22:39 +0100 Subject: 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 Reviewed-by: Eric Engestrom --- src/egl/main/eglimage.c | 9 --------- src/egl/main/eglimage.h | 7 +++++-- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'src/egl/main') diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c index c558f2f02b0..7587a4be4a3 100644 --- a/src/egl/main/eglimage.c +++ b/src/egl/main/eglimage.c @@ -245,12 +245,3 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy, return err; } - - -EGLBoolean -_eglInitImage(_EGLImage *img, _EGLDisplay *dpy) -{ - _eglInitResource(&img->Resource, sizeof(*img), dpy); - - return EGL_TRUE; -} diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h index eb66280ff96..eef98604e7a 100644 --- a/src/egl/main/eglimage.h +++ b/src/egl/main/eglimage.h @@ -96,8 +96,11 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy, const EGLint *attrib_list); -extern EGLBoolean -_eglInitImage(_EGLImage *img, _EGLDisplay *dpy); +static inline void +_eglInitImage(_EGLImage *img, _EGLDisplay *dpy) +{ + _eglInitResource(&img->Resource, sizeof(*img), dpy); +} /** -- cgit v1.2.3