egl/drm: remove unreachable code in dri2_drm_create_surface()
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 4 Aug 2017 23:25:52 +0000 (00:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 10 Aug 2017 18:32:14 +0000 (19:32 +0100)
commit430a80a7b6cb05525cdf8c20be5aede6d717ec45
treeae8014676587d9b5c1eab5cb1ce687ea4d6ef9c4
parent794df9acad9828f97aa27523e87eed2f3c808378
egl/drm: remove unreachable code in dri2_drm_create_surface()

The function can be called only when the type is EGL_WINDOW_BIT.
Remove the unneeded switch statement.

v2: Rename the local variable window to surface (Eric)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (v1)
src/egl/drivers/dri2/platform_drm.c