From 080436fd23c076ef773cc803c65378d4242e05e5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 13 Oct 2013 23:16:12 -0400 Subject: [PATCH] Remove a redundant if statement in function set_direct_pix_conv in scaler.c. This branch already exists in this if statement chain, see the third else-if statement. --- gfx/scaler/scaler.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gfx/scaler/scaler.c b/gfx/scaler/scaler.c index 3fa9cb3b77..a015ea63d3 100644 --- a/gfx/scaler/scaler.c +++ b/gfx/scaler/scaler.c @@ -84,8 +84,6 @@ static bool set_direct_pix_conv(struct scaler_ctx *ctx) ctx->direct_pixconv = conv_argb8888_bgr24; else if (ctx->in_fmt == SCALER_FMT_0RGB1555 && ctx->out_fmt == SCALER_FMT_BGR24) ctx->direct_pixconv = conv_0rgb1555_bgr24; - else if (ctx->in_fmt == SCALER_FMT_RGB565 && ctx->out_fmt == SCALER_FMT_BGR24) - ctx->direct_pixconv = conv_rgb565_bgr24; else if (ctx->in_fmt == SCALER_FMT_ARGB8888 && ctx->out_fmt == SCALER_FMT_ABGR8888) ctx->direct_pixconv = conv_argb8888_abgr8888; else