summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");