linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rodrigo Siqueira Jordao <Rodrigo.Siqueira@amd.com>
To: Dong Chenchen <dongchenchen2@huawei.com>,
	airlied@gmail.com, daniel@ffwll.ch
Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Xinhui.Pan@amd.com,
	alexander.deucher@amd.com, Jerry.Zuo@amd.com,
	yuehaibing@huawei.com, linux-mips@vger.kernel.org,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org, kernel test robot <lkp@intel.com>
Subject: Re: [PATCH -next] drm/amd/display: Removed unused variable 'sdp_stream_enable'
Date: Tue, 4 Oct 2022 10:53:12 -0400	[thread overview]
Message-ID: <a80f39a1-6df5-cf4a-10e5-be46db8a778f@amd.com> (raw)
In-Reply-To: <20220930063827.1835856-1-dongchenchen2@huawei.com>



On 2022-09-30 02:38, Dong Chenchen wrote:
> Kernel test robot throws below warning ->
> 
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:
> In function 'dcn31_hpo_dp_stream_enc_update_dp_info_packets':
>     drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c:439:14:
> warning: variable 'sdp_stream_enable' set but not used
> [-Wunused-but-set-variable]
>     439 |         bool sdp_stream_enable = false;
> 
> Removed unused variable 'sdp_stream_enable'.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Dong Chenchen <dongchenchen2@huawei.com>
> ---
>   .../dc/dcn31/dcn31_hpo_dp_stream_encoder.c       | 16 ++++++----------
>   1 file changed, 6 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c
> index 23621ff08c90..7daafbab98da 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c
> @@ -436,32 +436,28 @@ static void dcn31_hpo_dp_stream_enc_update_dp_info_packets(
>   {
>   	struct dcn31_hpo_dp_stream_encoder *enc3 = DCN3_1_HPO_DP_STREAM_ENC_FROM_HPO_STREAM_ENC(enc);
>   	uint32_t dmdata_packet_enabled = 0;
> -	bool sdp_stream_enable = false;
>   
> -	if (info_frame->vsc.valid) {
> +	if (info_frame->vsc.valid)
>   		enc->vpg->funcs->update_generic_info_packet(
>   				enc->vpg,
>   				0,  /* packetIndex */
>   				&info_frame->vsc,
>   				true);
> -		sdp_stream_enable = true;
> -	}
> -	if (info_frame->spd.valid) {
> +
> +	if (info_frame->spd.valid)
>   		enc->vpg->funcs->update_generic_info_packet(
>   				enc->vpg,
>   				2,  /* packetIndex */
>   				&info_frame->spd,
>   				true);
> -		sdp_stream_enable = true;
> -	}
> -	if (info_frame->hdrsmd.valid) {
> +
> +	if (info_frame->hdrsmd.valid)
>   		enc->vpg->funcs->update_generic_info_packet(
>   				enc->vpg,
>   				3,  /* packetIndex */
>   				&info_frame->hdrsmd,
>   				true);
> -		sdp_stream_enable = true;
> -	}
> +
>   	/* enable/disable transmission of packet(s).
>   	 * If enabled, packet transmission begins on the next frame
>   	 */

Thanks a lot for your patch,

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>

and applied to amd-staging-drm-next.

Thanks
Siqueira

      reply	other threads:[~2022-10-04 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-30  6:38 [PATCH -next] drm/amd/display: Removed unused variable 'sdp_stream_enable' Dong Chenchen
2022-10-04 14:53 ` Rodrigo Siqueira Jordao [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=a80f39a1-6df5-cf4a-10e5-be46db8a778f@amd.com \
    --to=rodrigo.siqueira@amd.com \
    --cc=Jerry.Zuo@amd.com \
    --cc=Xinhui.Pan@amd.com \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=daniel@ffwll.ch \
    --cc=dongchenchen2@huawei.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=harry.wentland@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=sunpeng.li@amd.com \
    --cc=yuehaibing@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).