egl: remove unused err variable