From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: cgel.zte@gmail.com, robdclark@gmail.com
Cc: sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch,
lyude@redhat.com, airlied@redhat.com,
laurent.pinchart@ideasonboard.com, chi.minghao@zte.com.cn,
treding@nvidia.com, linux-arm-msm@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org,
linux-kernel@vger.kernel.org, Zeal Robot <zealci@zte.com.cn>,
Alexey Minnekhanov <alexeymin@postmarketos.org>,
Brian Masney <masneyb@onstation.org>
Subject: Re: [PATCH] drm/msm: remove unneeded variable
Date: Fri, 3 Sep 2021 21:51:47 +0300 [thread overview]
Message-ID: <65f56c2b-591a-16c8-7f3a-41695b1147b3@linaro.org> (raw)
In-Reply-To: <20210831115127.18236-1-chi.minghao@zte.com.cn>
On 31/08/2021 14:51, cgel.zte@gmail.com wrote:
> From: Chi Minghao <chi.minghao@zte.com.cn>
>
> Fix the following coccicheck REVIEW:
> ./drivers/gpu/drm/msm/edp/edp_ctrl.c:1245:5-8 Unneeded variable
>
> Reported-by: Zeal Robot <zealci@zte.com.cn>
> Signed-off-by: Chi Minghao <chi.minghao@zte.com.cn>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Glancing on msm/edp, as it was never supported by the in-kernel dts I
wonder: maybe we should drop it completely? If the need arises the
removal can be reverted anytime.
Does anybody hacking 8084/8074/8974 support has eDP port access?
> ---
> drivers/gpu/drm/msm/edp/edp_ctrl.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/edp/edp_ctrl.c b/drivers/gpu/drm/msm/edp/edp_ctrl.c
> index 4fb397ee7c84..3610e26e62fa 100644
> --- a/drivers/gpu/drm/msm/edp/edp_ctrl.c
> +++ b/drivers/gpu/drm/msm/edp/edp_ctrl.c
> @@ -1242,8 +1242,6 @@ bool msm_edp_ctrl_panel_connected(struct edp_ctrl *ctrl)
> int msm_edp_ctrl_get_panel_info(struct edp_ctrl *ctrl,
> struct drm_connector *connector, struct edid **edid)
> {
> - int ret = 0;
> -
> mutex_lock(&ctrl->dev_mutex);
>
> if (ctrl->edid) {
> @@ -1278,7 +1276,7 @@ int msm_edp_ctrl_get_panel_info(struct edp_ctrl *ctrl,
> }
> unlock_ret:
> mutex_unlock(&ctrl->dev_mutex);
> - return ret;
> + return 0;
> }
>
> int msm_edp_ctrl_timing_cfg(struct edp_ctrl *ctrl,
>
--
With best wishes
Dmitry
prev parent reply other threads:[~2021-09-03 18:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-31 11:51 cgel.zte
2021-09-02 18:40 ` Lyude Paul
2021-09-03 18:31 ` Dmitry Baryshkov
2021-09-03 18:40 ` Lyude Paul
2021-09-03 18:51 ` Dmitry Baryshkov [this message]
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=65f56c2b-591a-16c8-7f3a-41695b1147b3@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=airlied@linux.ie \
--cc=airlied@redhat.com \
--cc=alexeymin@postmarketos.org \
--cc=cgel.zte@gmail.com \
--cc=chi.minghao@zte.com.cn \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lyude@redhat.com \
--cc=masneyb@onstation.org \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=treding@nvidia.com \
--cc=zealci@zte.com.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®