Re: [Mesa-dev] [PATCH mesa] egl/display: remove unnecessary code and make it easier to read

2016-07-07 Thread Chad Versace
On Wed 06 Jul 2016, Eric Engestrom wrote: > Remove the two first level `if` as they will always be true, and > flatten the two remaining `if`. > No functional change. > > Signed-off-by: Eric Engestrom > --- > src/egl/main/egldisplay.c | 29

[Mesa-dev] [PATCH mesa] egl/display: remove unnecessary code and make it easier to read

2016-07-06 Thread Eric Engestrom
Remove the two first level `if` as they will always be true, and flatten the two remaining `if`. No functional change. Signed-off-by: Eric Engestrom --- src/egl/main/egldisplay.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-)