changeset 36992:c2dcedfe36de

Remove pointless initialization. Additionally, merge declarations.
author ib
date Thu, 27 Mar 2014 10:28:50 +0000
parents fa8b6892b0bf
children 764a6a754b89
files gui/ui/render.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/render.c	Thu Mar 27 09:44:01 2014 +0000
+++ b/gui/ui/render.c	Thu Mar 27 10:28:50 2014 +0000
@@ -359,9 +359,8 @@
 
 static void PutImage(guiImage *bf, int x, int y, int max, int ofs)
 {
-    int i = 0, ix, iy;
-    uint32_t *buf = NULL;
-    uint32_t *drw = NULL;
+    int i, ix, iy;
+    uint32_t *drw, *buf;
     register uint32_t tmp;
 
     /* register uint32_t yc; */
@@ -400,8 +399,7 @@
 static void SinglePhasePutImage(guiImage *bf, int x, int y, float frac)
 {
     int i = 0, w, r, ix, iy;
-    uint32_t *buf = NULL;
-    uint32_t *drw = NULL;
+    uint32_t *drw, *buf;
     register uint32_t tmp;
 
     if (!bf || (bf->Image == NULL))