From 8fdf7299f6293f119bedf7ac80d03c023864b51b Mon Sep 17 00:00:00 2001
From: twinaphex <libretro@gmail.com>
Date: Wed, 3 Sep 2014 06:18:19 +0200
Subject: [PATCH] (gfx/scaler) Get rid of some unnecessary ifs

---
 gfx/scaler/scaler_common.h | 3 +--
 gfx/scaler/scaler_filter.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/gfx/scaler/scaler_common.h b/gfx/scaler/scaler_common.h
index af1576b179..3487aea16b 100644
--- a/gfx/scaler/scaler_common.h
+++ b/gfx/scaler/scaler_common.h
@@ -25,8 +25,7 @@ static inline uint8_t clamp_8bit(int val)
       return 255;
    else if (val < 0)
       return 0;
-   else
-      return (uint8_t)val;
+   return (uint8_t)val;
 }
 
 #endif
diff --git a/gfx/scaler/scaler_filter.c b/gfx/scaler/scaler_filter.c
index cfc8c60fc3..0d99710649 100644
--- a/gfx/scaler/scaler_filter.c
+++ b/gfx/scaler/scaler_filter.c
@@ -101,8 +101,7 @@ static inline double filter_sinc(double phase)
 {
    if (fabs(phase) < 0.0001)
       return 1.0;
-   else
-      return sin(phase) / phase;
+   return sin(phase) / phase;
 }
 
 static void gen_filter_sinc_sub(struct scaler_filter *filter, int len, int pos, int step, double phase_mul)