OSDN Git Service

egl: Drop check for driver != NULL.
authorEric Anholt <eric@anholt.net>
Tue, 9 Jun 2015 19:16:19 +0000 (12:16 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 15 Jun 2015 17:32:23 +0000 (10:32 -0700)
commit932d1613d1e15ec22555e5ec09105c49eb850e36
tree8b08f4d126b40d8d1e3d8e3df06771be61d7996d
parentbcd8a64f32f6387cbd8ed8d0bda0f49bd7dd4251
egl: Drop check for driver != NULL.

Back in 2013, a patch was added (with 2 reviewers!) at the end of the
block to early exit the loop in this case, without noticing that the loop
already did.  I added another early exit case, again without noticing, but
Rob caught me.  Just drop the loop condition that apparently surprises
most of us, instead of leaving the end of the loop conspicuously not
exiting on success.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/egl/drivers/dri2/egl_dri2.c