diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2008-02-05 10:11:46 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2008-02-05 10:11:46 +0000 |
commit | de0084590bc34c2c23cb3d7a754f3e98059f4cf2 (patch) | |
tree | 87aba767f194e19df295af31f306144ccb6a429e /linux-core | |
parent | 5e81a40f3b531ef95f84581a40b5a5badd9ee986 (diff) |
fix some warnings
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/intel_crt.c | 5 | ||||
-rw-r--r-- | linux-core/intel_fb.c | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/linux-core/intel_crt.c b/linux-core/intel_crt.c index 4be71cba..a9fb50a3 100644 --- a/linux-core/intel_crt.c +++ b/linux-core/intel_crt.c @@ -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; } diff --git a/linux-core/intel_fb.c b/linux-core/intel_fb.c index 59df1976..6df243b0 100644 --- a/linux-core/intel_fb.c +++ b/linux-core/intel_fb.c @@ -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"); |