DSS2: FB: remove unused var warning
authorImre Deak <imre.deak@nokia.com>
Mon, 6 Apr 2009 20:26:04 +0000 (22:26 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 1 May 2009 16:45:02 +0000 (19:45 +0300)
Signed-off-by: Imre Deak <imre.deak@nokia.com>
drivers/video/omap2/omapfb/omapfb-main.c

index afe40a9..12ce0c3 100644 (file)
@@ -1246,7 +1246,9 @@ static int omapfb_alloc_fbmem_display(struct fb_info *fbi, unsigned long size,
                display->get_resolution(display, &w, &h);
 
                if (ofbi->rotation_type == OMAPFB_ROT_VRFB) {
+#ifdef DEBUG
                        int oldw = w, oldh = h;
+#endif
 
                        omap_vrfb_adjust_size(&w, &h, bytespp);