summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-02-05 10:11:46 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2008-02-05 10:11:46 +0000
commitde0084590bc34c2c23cb3d7a754f3e98059f4cf2 (patch)
tree87aba767f194e19df295af31f306144ccb6a429e
parent5e81a40f3b531ef95f84581a40b5a5badd9ee986 (diff)
fix some warnings
-rw-r--r--linux-core/intel_crt.c5
-rw-r--r--linux-core/intel_fb.c1
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");