[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <38969a7640a5067a714fc87fb5aa7d3a@codeaurora.org>
Date: Wed, 07 Apr 2021 10:51:54 -0700
From: abhinavk@...eaurora.org
To: Zhen Lei <thunder.leizhen@...wei.com>
Cc: Rob Clark <robdclark@...il.com>, Sean Paul <sean@...rly.run>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
linux-arm-msm <linux-arm-msm@...r.kernel.org>,
dri-devel <dri-devel@...ts.freedesktop.org>,
freedreno <freedreno@...ts.freedesktop.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] drm/msm/dp: remove unused local variable 'hpd'
On 2021-04-07 01:23, Zhen Lei wrote:
> Fixes the following W=1 kernel build warning:
>
> drivers/gpu/drm/msm/dp/dp_display.c: In function
> ‘dp_display_usbpd_attention_cb’:
> drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable ‘hpd’
> set but not used [-Wunused-but-set-variable]
>
> Fixes: c58eb1b54fee ("drm/msm/dp: fix connect/disconnect handled at
> irq_hpd")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
Reviewed-by: Abhinav Kumar <abhinavk@...eaurora.org>
> ---
> drivers/gpu/drm/msm/dp/dp_display.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c
> b/drivers/gpu/drm/msm/dp/dp_display.c
> index 5a39da6e1eaf277..31bf2a40a9eb2c9 100644
> --- a/drivers/gpu/drm/msm/dp/dp_display.c
> +++ b/drivers/gpu/drm/msm/dp/dp_display.c
> @@ -493,7 +493,6 @@ static int dp_display_usbpd_attention_cb(struct
> device *dev)
> int rc = 0;
> u32 sink_request;
> struct dp_display_private *dp;
> - struct dp_usbpd *hpd;
>
> if (!dev) {
> DRM_ERROR("invalid dev\n");
> @@ -507,8 +506,6 @@ static int dp_display_usbpd_attention_cb(struct
> device *dev)
> return -ENODEV;
> }
>
> - hpd = dp->usbpd;
> -
> /* check for any test request issued by sink */
> rc = dp_link_process_request(dp->link);
> if (!rc) {
Powered by blists - more mailing lists