drm/msm/dpu: Remove unused variables

Signed-off-by: Drew Davenport <ddavenport@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
Drew Davenport 2019-09-06 13:23:39 -06:00 committed by Rob Clark
parent bfcb7e1555
commit e5c8d1b2c1
2 changed files with 0 additions and 12 deletions

View File

@ -1288,13 +1288,8 @@ struct drm_crtc *dpu_crtc_init(struct drm_device *dev, struct drm_plane *plane,
{ {
struct drm_crtc *crtc = NULL; struct drm_crtc *crtc = NULL;
struct dpu_crtc *dpu_crtc = NULL; struct dpu_crtc *dpu_crtc = NULL;
struct msm_drm_private *priv = NULL;
struct dpu_kms *kms = NULL;
int i; int i;
priv = dev->dev_private;
kms = to_dpu_kms(priv->kms);
dpu_crtc = kzalloc(sizeof(*dpu_crtc), GFP_KERNEL); dpu_crtc = kzalloc(sizeof(*dpu_crtc), GFP_KERNEL);
if (!dpu_crtc) if (!dpu_crtc)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);

View File

@ -1914,8 +1914,6 @@ static int _dpu_encoder_debugfs_status_open(struct inode *inode,
static int _dpu_encoder_init_debugfs(struct drm_encoder *drm_enc) static int _dpu_encoder_init_debugfs(struct drm_encoder *drm_enc)
{ {
struct dpu_encoder_virt *dpu_enc = to_dpu_encoder_virt(drm_enc); struct dpu_encoder_virt *dpu_enc = to_dpu_encoder_virt(drm_enc);
struct msm_drm_private *priv;
struct dpu_kms *dpu_kms;
int i; int i;
static const struct file_operations debugfs_status_fops = { static const struct file_operations debugfs_status_fops = {
@ -1932,9 +1930,6 @@ static int _dpu_encoder_init_debugfs(struct drm_encoder *drm_enc)
return -EINVAL; return -EINVAL;
} }
priv = drm_enc->dev->dev_private;
dpu_kms = to_dpu_kms(priv->kms);
snprintf(name, DPU_NAME_SIZE, "encoder%u", drm_enc->base.id); snprintf(name, DPU_NAME_SIZE, "encoder%u", drm_enc->base.id);
/* create overall sub-directory for the encoder */ /* create overall sub-directory for the encoder */
@ -2133,14 +2128,12 @@ static void dpu_encoder_frame_done_timeout(struct timer_list *t)
struct dpu_encoder_virt *dpu_enc = from_timer(dpu_enc, t, struct dpu_encoder_virt *dpu_enc = from_timer(dpu_enc, t,
frame_done_timer); frame_done_timer);
struct drm_encoder *drm_enc = &dpu_enc->base; struct drm_encoder *drm_enc = &dpu_enc->base;
struct msm_drm_private *priv;
u32 event; u32 event;
if (!drm_enc->dev || !drm_enc->dev->dev_private) { if (!drm_enc->dev || !drm_enc->dev->dev_private) {
DPU_ERROR("invalid parameters\n"); DPU_ERROR("invalid parameters\n");
return; return;
} }
priv = drm_enc->dev->dev_private;
if (!dpu_enc->frame_busy_mask[0] || !dpu_enc->crtc_frame_event_cb) { if (!dpu_enc->frame_busy_mask[0] || !dpu_enc->crtc_frame_event_cb) {
DRM_DEBUG_KMS("id:%u invalid timeout frame_busy_mask=%lu\n", DRM_DEBUG_KMS("id:%u invalid timeout frame_busy_mask=%lu\n",