From patchwork Wed Mar 28 06:17:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajesh Yadav X-Patchwork-Id: 10312181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0015060325 for ; Wed, 28 Mar 2018 06:18:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E697828FFE for ; Wed, 28 Mar 2018 06:18:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB3E629049; Wed, 28 Mar 2018 06:18:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A21128FFE for ; Wed, 28 Mar 2018 06:18:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752159AbeC1GSF (ORCPT ); Wed, 28 Mar 2018 02:18:05 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58244 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752154AbeC1GSE (ORCPT ); Wed, 28 Mar 2018 02:18:04 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7C9BD602FC; Wed, 28 Mar 2018 06:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522217884; bh=tZlT8Q7cwsmk4FSvW5klYdrN2n7EXUgNz0tLEdGT+zE=; h=From:To:Cc:Subject:Date:From; b=m8B7yr4XbPSh7yWzWT1XbMaicpxp8ESlHzr2b85DEBg30Kgk3cx5MkP3WqSOsH5+c /SBt945pVUSBTkxNCqOR5hahvAgdl7yr2m47b7RvZFoFfslBFDkSgX2pe+MGOTQgFV 2BgBVBQXI7zQCBZY6etJTg2ejTJgYfcWXA7U+isI= Received: from ryadav-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ryadav@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D5D15607DD; Wed, 28 Mar 2018 06:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522217883; bh=tZlT8Q7cwsmk4FSvW5klYdrN2n7EXUgNz0tLEdGT+zE=; h=From:To:Cc:Subject:Date:From; b=PGGFKejfWf5m4J0ScFG0/VrXTupkbXgqU3hgCZ0vLRiYo4IF9mz0Fq7jM4TQN1wEz fcASGJN41EfVE3p/Ab0LWQgOQ4AhPz9cyK294bLfqfKtYwUgK/2YhaV8TK/sd1AfGt uY+rydK36lpHflWTMNOwlFSpzSsmK4Auo9DJvJ2g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D5D15607DD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ryadav@codeaurora.org From: Rajesh Yadav To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: Rajesh Yadav , robdclark@gmail.com, seanpaul@chromium.org, hoegsberg@chromium.org Subject: [DPU PATCH 1/3] drm/msm: Remove unused variables Date: Wed, 28 Mar 2018 11:47:46 +0530 Message-Id: <1522217866-2138-1-git-send-email-ryadav@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix compilation errors due to unused variables. Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index bf46cf1..51cffc4 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -2587,7 +2587,7 @@ static void dpu_crtc_disable(struct drm_crtc *crtc) struct dpu_crtc_irq_info *node = NULL; struct drm_event event; u32 power_on; - int ret, i; + int ret; if (!crtc || !crtc->dev || !crtc->dev->dev_private || !crtc->state) { DPU_ERROR("invalid crtc\n"); diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c index 2bc5894..3b1212b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c @@ -264,7 +264,6 @@ static void dpu_encoder_phys_wb_setup_fb(struct dpu_encoder_phys *phys_enc, const struct msm_format *format; int ret; struct msm_gem_address_space *aspace; - u32 fb_mode; if (!phys_enc || !phys_enc->dpu_kms || !phys_enc->dpu_kms->catalog || !phys_enc->connector) { diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 7186c64..8ef75f5 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -426,7 +426,6 @@ static void dpu_kms_commit(struct msm_kms *kms, struct drm_atomic_state *state) { struct drm_crtc *crtc; struct drm_crtc_state *crtc_state; - struct dpu_crtc_state *cstate; int i; for_each_new_crtc_in_state(state, crtc, crtc_state, i) { diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index c657e6b..b11a918 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c @@ -2742,7 +2742,6 @@ static void dpu_plane_destroy_state(struct drm_plane *plane, struct dpu_plane *pdpu; struct dpu_plane_state *pstate; struct dpu_plane_state *old_state; - struct drm_property *drm_prop; if (!plane) { DPU_ERROR("invalid plane\n");