diff options
author | Lespiau, Damien <damien.lespiau@intel.com> | 2013-09-28 19:24:05 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-01 09:28:59 +0400 |
commit | 51bbd276015661a28b69450e104632bc2b633311 (patch) | |
tree | 139e37aea939dac11834407c4fcb53f632e49c85 /drivers/gpu | |
parent | 86aed6765c2c71d8e86b7d43f8ec64ac638ef2a2 (diff) | |
download | linux-51bbd276015661a28b69450e104632bc2b633311.tar.xz |
drm: Remove unused variables in drm_fb_helper_hotplug_event()
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_fb_helper.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index f61ac2387d3c..21742a81cb9c 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1582,8 +1582,7 @@ EXPORT_SYMBOL(drm_fb_helper_initial_config); int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper) { struct drm_device *dev = fb_helper->dev; - int count = 0; - u32 max_width, max_height, bpp_sel; + u32 max_width, max_height; if (!fb_helper->fb) return 0; @@ -1598,10 +1597,8 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper) max_width = fb_helper->fb->width; max_height = fb_helper->fb->height; - bpp_sel = fb_helper->fb->bits_per_pixel; - count = drm_fb_helper_probe_connector_modes(fb_helper, max_width, - max_height); + drm_fb_helper_probe_connector_modes(fb_helper, max_width, max_height); mutex_unlock(&fb_helper->dev->mode_config.mutex); drm_modeset_lock_all(dev); |