All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhengbin <zhengbin13@huawei.com>
To: tomi.valkeinen@ti.com, airlied@linux.ie, daniel@ffwll.ch,
	laurent.pinchart@ideasonboard.com,
	dri-devel@lists.freedesktop.org
Cc: zhengbin13@huawei.com
Subject: [PATCH 2/4] drm/omap: Remove set but not used variable 'tclk_trail'
Date: Tue, 8 Oct 2019 15:15:47 +0800	[thread overview]
Message-ID: <1570518949-47574-3-git-send-email-zhengbin13@huawei.com> (raw)
In-Reply-To: <1570518949-47574-1-git-send-email-zhengbin13@huawei.com>

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/omapdrm/dss/dsi.c: In function dsi_proto_timings:
drivers/gpu/drm/omapdrm/dss/dsi.c:3562:46: warning: variable tclk_trail set but not used [-Wunused-but-set-variable]

It is not used since commit 9960aa7cb58c ("drm/omap:
move omapdss & displays under omapdrm")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 drivers/gpu/drm/omapdrm/dss/dsi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index b30fcaa..da16ea0 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -3548,7 +3548,7 @@ static int dsi_proto_config(struct dsi_data *dsi)

 static void dsi_proto_timings(struct dsi_data *dsi)
 {
-	unsigned int tlpx, tclk_zero, tclk_prepare, tclk_trail;
+	unsigned int tlpx, tclk_zero, tclk_prepare;
 	unsigned int tclk_pre, tclk_post;
 	unsigned int ths_prepare, ths_prepare_ths_zero, ths_zero;
 	unsigned int ths_trail, ths_exit;
@@ -3567,7 +3567,6 @@ static void dsi_proto_timings(struct dsi_data *dsi)

 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG1);
 	tlpx = FLD_GET(r, 20, 16) * 2;
-	tclk_trail = FLD_GET(r, 15, 8);
 	tclk_zero = FLD_GET(r, 7, 0);

 	r = dsi_read_reg(dsi, DSI_DSIPHY_CFG2);
--
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2019-10-08  7:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-08  7:15 [PATCH 0/4] drm/omap: Remove some set but not used variables zhengbin
2019-10-08  7:15 ` [PATCH 1/4] drm/omap: Remove set but not used variable 'plane' zhengbin
2019-10-09 21:33   ` Laurent Pinchart
2019-10-08  7:15 ` zhengbin [this message]
2019-10-09 21:35   ` [PATCH 2/4] drm/omap: Remove set but not used variable 'tclk_trail' Laurent Pinchart
2019-10-08  7:15 ` [PATCH 3/4] drm/omap: Remove set but not used variable 'err' in hdmi5_audio_config zhengbin
2019-10-09 21:40   ` Laurent Pinchart
2019-10-08  7:15 ` [PATCH 4/4] drm/omap: Remove set but not used variable 'err' in hdmi4_audio_config zhengbin
2019-10-09 21:41   ` Laurent Pinchart
2019-10-11 14:16 ` [PATCH 0/4] drm/omap: Remove some set but not used variables Tomi Valkeinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1570518949-47574-3-git-send-email-zhengbin13@huawei.com \
    --to=zhengbin13@huawei.com \
    --cc=airlied@linux.ie \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.