changeset 33125:9c178cf14a61

Get rid of else-block to improve readability.
author ib
date Mon, 04 Apr 2011 18:23:19 +0000
parents 7e7d9c19f3d9
children a5dc70e2cda3
files gui/util/bitmap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Mon Apr 04 16:02:59 2011 +0000
+++ b/gui/util/bitmap.c	Mon Apr 04 18:23:19 2011 +0000
@@ -233,7 +233,8 @@
     if (!out->Image) {
         mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[bitmap] not enough memory: %lu\n", out->ImageSize);
         return 0;
-    } else {
+    }
+
         buf = (uint32_t *)in->Image;
 
         for (i = 0; i < out->Width * out->Height; i++) {
@@ -259,7 +260,6 @@
 
         if (!shaped)
             bpFree(out);
-    }
 
     return 1;
 }