OSDN Git Service

fix some warnings
authorAlan Hourihane <alanh@tungstengraphics.com>
Tue, 5 Feb 2008 10:11:46 +0000 (10:11 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Tue, 5 Feb 2008 10:11:46 +0000 (10:11 +0000)
linux-core/intel_crt.c
linux-core/intel_fb.c

index 4be71cb..a9fb50a 100644 (file)
@@ -219,11 +219,10 @@ static bool intel_crt_set_property(struct drm_output *output,
                                  uint64_t value)
 {
        struct drm_device *dev = output->dev;
-       int i;
 
-       if (property == dev->mode_config.dpms_property) {
+       if (property == dev->mode_config.dpms_property)
                intel_crt_dpms(output, (uint32_t)(value & 0xf));
-       }
+
        return true;
 }
 
index 59df197..6df243b 100644 (file)
@@ -490,7 +490,6 @@ static int intelfb_pan_display(struct fb_var_screeninfo *var,
 {
        struct intelfb_par *par = info->par;
        struct drm_crtc *crtc = par->crtc;
-       struct drm_framebuffer *fb = crtc->fb;
 
        DRM_DEBUG("\n");