Skip to content

Commit

Permalink
drm fb helper: remove unused variable crtc_id
Browse files Browse the repository at this point in the history
crtc_id is set but never used, so remove it from struct
drm_fb_helper_crtc.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Sascha Hauer authored and Dave Airlie committed Feb 3, 2012
1 parent e9ad318 commit 4f988d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/gpu/drm/drm_fb_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ int drm_fb_helper_init(struct drm_device *dev,

i = 0;
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
fb_helper->crtc_info[i].crtc_id = crtc->base.id;
fb_helper->crtc_info[i].mode_set.crtc = crtc;
i++;
}
Expand Down
1 change: 0 additions & 1 deletion include/drm/drm_fb_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ struct drm_fb_helper;
#include <linux/kgdb.h>

struct drm_fb_helper_crtc {
uint32_t crtc_id;
struct drm_mode_set mode_set;
struct drm_display_mode *desired_mode;
};
Expand Down

0 comments on commit 4f988d1

Please sign in to comment.