From 02a1d38912594993c492972334366ea17324d4c5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 3 Sep 2014 20:23:25 -0400 Subject: [PATCH] lakka: Remove three unnecessary NULL checks. These are already checked for after the initialization of themselves. --- frontend/menu/disp/lakka.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/menu/disp/lakka.c b/frontend/menu/disp/lakka.c index 52bdd965b8..a60b056eca 100644 --- a/frontend/menu/disp/lakka.c +++ b/frontend/menu/disp/lakka.c @@ -379,7 +379,7 @@ void lakka_draw_background(void) gl->coords.color = color; glBindTexture(GL_TEXTURE_2D, textures[TEXTURE_BG].id); - if (gl && gl->shader && gl->shader->use) + if (gl->shader && gl->shader->use) gl->shader->use(gl, GL_SHADER_STOCK_BLEND); gl->coords.vertices = 4; @@ -424,7 +424,7 @@ void lakka_draw_icon(GLuint texture, float x, float y, gl->coords.color = color; glBindTexture(GL_TEXTURE_2D, texture); - if (gl && gl->shader && gl->shader->use) + if (gl->shader && gl->shader->use) gl->shader->use(gl, GL_SHADER_STOCK_BLEND); math_matrix mymat; @@ -596,7 +596,7 @@ static void lakka_frame(void) lakka_draw_categories(); - if (depth == 0 && active_category) + if (depth == 0) lakka_draw_text(active_category->name, title_margin_left, title_margin_top, 1, 1.0); else if (active_item)