# HG changeset patch # User ib # Date 1301941399 0 # Node ID 9c178cf14a61c62f02c436789ccf82ba9cde92a6 # Parent 7e7d9c19f3d95169154b145763426c4da8171015 Get rid of else-block to improve readability. diff -r 7e7d9c19f3d9 -r 9c178cf14a61 gui/util/bitmap.c --- 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; }