Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3487789rwe; Mon, 29 Aug 2022 12:50:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xddqcTbOSH3rK89DOvoU/EpRU2K3smvq5jqRlGWXp6SWtYxzOmFNSRscgOt1lbIGhMag9 X-Received: by 2002:a63:d16:0:b0:41d:fe52:1d2f with SMTP id c22-20020a630d16000000b0041dfe521d2fmr15419994pgl.416.1661802607982; Mon, 29 Aug 2022 12:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661802607; cv=none; d=google.com; s=arc-20160816; b=cdxvci+RGv3p8EfGofIgFHXP0VejaBaWoMAopeLMQ3CNDlFGtZeztKS28XSA6pCctz nQWjkjsa95DqmbjoQ7W2ajBrttJo8K62cdpSn8thys6H9ep0ODXkDoNo5YjFbh+5LwPt EbxLGBEXVSzRElnC93BLqCShlXRJ2if59pad/+ifeRbnMZhrKgFZDkguaJqzdcpni7FE b0BftBPI8Tp5oe1nv0y2lBZVNKIzmO42i37R9rbcjQ277YNn//Cl5Jl3PO9R602BTU/K 82a3sDBhfBQSA8hni49NU3hrTgwtoFhzbdh1xxmsJVjNfz7CBF9mrm6sraTGQU5Yva0u AMIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vETszXP4tpDPkrySBXLgi1EkRM0QIaqBCFSpjffSf6A=; b=AZTRZWxRLNwb6rzkO63n3IBY8l17i+Xsq45PaMoruRrialIccXMtVo3tERCyio6uwD QYefkoPr64cENgmZZ9p+uIrWz8SgTfHcakKyAq+OIsAcDtFOzP25d2SQLPhX9pU0YdrA q2jokc9t+Noz96cuKthivWdcbkxYQ1Miwe/BQBzXu65/9Bzj0Ki4huLGQUA0Cqnp6/Bs XAZKa+Tu33CeNUo1ziPWsFkKu6Y23krpHce3tDIOJqzQLG7r+I5bHVgQ+ZVJGeMeNUvc DCuly7Ivf4lrkpUQmEUdyw6u2nvdcjYhBzjkcm0X6QtGG5X9+FWOcas/j3jnBkaHyfBG RsQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NwVZOfhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h184-20020a6383c1000000b0042bb13dba3fsi170781pge.99.2022.08.29.12.49.56; Mon, 29 Aug 2022 12:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NwVZOfhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbiH2TqJ (ORCPT + 99 others); Mon, 29 Aug 2022 15:46:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiH2TqH (ORCPT ); Mon, 29 Aug 2022 15:46:07 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D081F616 for ; Mon, 29 Aug 2022 12:46:07 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-11ba6e79dd1so11677309fac.12 for ; Mon, 29 Aug 2022 12:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=vETszXP4tpDPkrySBXLgi1EkRM0QIaqBCFSpjffSf6A=; b=NwVZOfhTEFuNXz+pARnpVVoHpeMj7OR7hnfJiKnJnjG65J2EwYFa5F2LT5j9HaXnSu K6QI+xlxIA0ycuifqvLzWsYCk20WPrFSVOoORLYTbZ4gJKJAYQ1rQgBmja5WPZWI7uxv 8zo/nsJF9knzLhre8yyB919nv5LI/zCXHZlN18axFiPgvDyI+rgwlpwp8AQXDsLUO251 No20kghi+90Wv6nW7MLjHFNsELraNG9l1sxa7nzYkEQ5tkMzoVeQQ3UnhJMFtJlz9LRb CQmxSjFAYq/LcRVyWMw1k1XZcEEIuqfE27KTI02WzG5gLFS95VDaUAlTQW2Eh2wOnT26 Tp9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=vETszXP4tpDPkrySBXLgi1EkRM0QIaqBCFSpjffSf6A=; b=Ho+XUNxoxYUuN1WeDH8qilTJHyxf/8uOOxEUULsIt2IyPcpKQxWz3JPyB8EUwd92ao 8jLxjtkJq7o00inZcJ1TOBbOkJ8HLNWFr0vO+RmM8Clk0szUvJ0AcZZ24BzY6r0ajaLE BNhwS6mLdtZwf6XdB6VOf2IeX5/etLEOwug4Kwfpv/iOZO9U4kigqabgwB3SnpC+E1+j ZYmg8GoUFs1PMlmIuvyOI8t7YuLvoUTcs2FgpF2yB+2pe/A/2djS8wbpih7T4UPKQy8b IjMjBcbExL7zT+d3BK90KWtBrdDR19Su52k1pBxP4NJKpMTtd+xWEdoLaqaM++stg8wa Yz1A== X-Gm-Message-State: ACgBeo1BkGiAIMHnJ/DAWITRtYCF900HezB9SjIk1PRhneeG4zy4l4DH RL/C3VfwxBGaVI60J0b4F6lcxP4OqKw2ya08lcM= X-Received: by 2002:a05:6808:138e:b0:345:13d1:fd66 with SMTP id c14-20020a056808138e00b0034513d1fd66mr8076771oiw.96.1661802366350; Mon, 29 Aug 2022 12:46:06 -0700 (PDT) MIME-Version: 1.0 References: <20220829121320.267892-1-cui.jinpeng2@zte.com.cn> In-Reply-To: <20220829121320.267892-1-cui.jinpeng2@zte.com.cn> From: Alex Deucher Date: Mon, 29 Aug 2022 15:45:55 -0400 Message-ID: Subject: Re: [PATCH linux-next] drm/amd/display: remove redundant vertical_line_start variable To: cgel.zte@gmail.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, Anthony.Koo@amd.com, alex.hung@amd.com, Roman.Li@amd.com, Yi-Ling.Chen2@amd.com, hanghong.ma@amd.com, mwen@igalia.com, dingchen.zhang@amd.com, dale.zhao@amd.com, Zeal Robot , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Jerry.Zuo@amd.com, dri-devel@lists.freedesktop.org, isabbasso@riseup.net, Jinpeng Cui , agustin.gutierrez@amd.com, Sungjoon.Kim@amd.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Mon, Aug 29, 2022 at 8:13 AM wrote: > > From: Jinpeng Cui > > Return value from expression directly instead of > taking this in another redundant variable. > > Reported-by: Zeal Robot > Signed-off-by: Jinpeng Cui > --- > drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > index 37246e965457..8f4f1ea447a7 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > @@ -3741,7 +3741,6 @@ int dcn10_get_vupdate_offset_from_vsync(struct pipe_ctx *pipe_ctx) > int vesa_sync_start; > int asic_blank_end; > int interlace_factor; > - int vertical_line_start; > > patched_crtc_timing = *dc_crtc_timing; > apply_front_porch_workaround(&patched_crtc_timing); > @@ -3757,10 +3756,8 @@ int dcn10_get_vupdate_offset_from_vsync(struct pipe_ctx *pipe_ctx) > patched_crtc_timing.v_border_top) > * interlace_factor; > > - vertical_line_start = asic_blank_end - > + return asic_blank_end - > pipe_ctx->pipe_dlg_param.vstartup_start + 1; > - > - return vertical_line_start; > } > > void dcn10_calc_vupdate_position( > -- > 2.25.1 >