Explorar o código

drm fb helper: remove unused variable crtc_id

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>
Sascha Hauer %!s(int64=13) %!d(string=hai) anos
pai
achega
4f988d132d
Modificáronse 2 ficheiros con 0 adicións e 2 borrados
  1. 0 1
      drivers/gpu/drm/drm_fb_helper.c
  2. 0 1
      include/drm/drm_fb_helper.h

+ 0 - 1
drivers/gpu/drm/drm_fb_helper.c

@@ -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++;
 	}

+ 0 - 1
include/drm/drm_fb_helper.h

@@ -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;
 };