[Mesa-dev] [PATCH kmscube] kmscube: Remove unneeded brackets
Fabio Estevam
festevam at gmail.com
Sat Mar 18 21:47:15 UTC 2017
There is no need to use brackets for single line if statements,
so simply remove them.
Signed-off-by: Fabio Estevam <festevam at gmail.com>
---
kmscube.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kmscube.c b/kmscube.c
index 8057e66..fcfd902 100644
--- a/kmscube.c
+++ b/kmscube.c
@@ -113,11 +113,10 @@ int main(int argc, char *argv[])
return -1;
}
- if (mode == SMOOTH) {
+ if (mode == SMOOTH)
egl = init_cube_smooth(gbm);
- } else {
+ else
egl = init_cube_tex(gbm, mode);
- }
if (!egl) {
printf("failed to initialize EGL\n");
--
2.7.4
More information about the mesa-dev
mailing list