Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1306883rwb; Thu, 11 Aug 2022 21:10:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ux2n4zahloJSRURBA1zEmJJHMomcUi6nBnKcQvlfCIX3nYBAgwX3ir84PVySJtLNvGq3d X-Received: by 2002:aa7:924e:0:b0:52e:e4cb:4954 with SMTP id 14-20020aa7924e000000b0052ee4cb4954mr2163093pfp.37.1660277402568; Thu, 11 Aug 2022 21:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660277402; cv=none; d=google.com; s=arc-20160816; b=iQcxMYJZ5JHJi2s0qo6gij9UMJlpfFKSf9rIIuej/LFCVBOHCysV+tas7UC4PBYLqD 0bEXVylg1Nq7BnhkAHFXJHnY7CF+3s/7YjA74xIp7FFYuUM5BMwIVYXZj04kc5XK52fW S3ayDP+AnXzxolfJ0k9dd0zu+FQB4U7IZxqdKkFiLqU24O/tqpBSoR35Hlffe+J4nGIv 8d3MQvdC9Y8ZXZVVwFTKzOp22FgkmcNdWW81ckZV6wWDoxkn91rbGgIuchXB+5zGF8RT 8AvOTJwSGbhY5LBUsdtnClrrBnapigE4ZRYWp4drJ36JX1b4XdMBiO9ABKB+bNzqxlKe H7Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3PHS1KDpnDcgC7O/+B11Viilm3sfJEltDYj7EZDX+Kw=; b=k05z9T2v4i3gXX/5n+dDCXjmqZhIuB8zNR0j0TBk0jRhmyKeJxvt6/pjiaPApohuIB IlEyFE4EXLrD3itVEeA9dRV69fv8xJkS+oxS/BIcgG2An6C/tIL2kUyBzGDqTuPJ17CJ dUOL6rvWrw5d8BYgaAZB0lijYgSSA7RbsAYT7mQoLSqGW8l+YFK+kMks2oJRKAk1qyUJ C1VHWI8fI4SV4peu/HnslUWe2G0cVMWbcEwF6VX/EFbqrgCQGc5I1Nwsngp/QNAQ9reh xx4XlKVc7wyWitnaU1x9taI68m9a2W8LpZoSHdPgePb2eYV0Z0Ocq6cEniZhjJNqvsc9 NU+g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j71-20020a63804a000000b0041cd0b424f0si1422384pgd.31.2022.08.11.21.09.49; Thu, 11 Aug 2022 21:10:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236754AbiHLDTi (ORCPT + 99 others); Thu, 11 Aug 2022 23:19:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHLDTa (ORCPT ); Thu, 11 Aug 2022 23:19:30 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54E61A344C for ; Thu, 11 Aug 2022 20:19:29 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VM.yIy1_1660274353; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VM.yIy1_1660274353) by smtp.aliyun-inc.com; Fri, 12 Aug 2022 11:19:26 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/amd/display: remove unreachable code Date: Fri, 12 Aug 2022 11:19:11 +0800 Message-Id: <20220812031911.62729-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, TVD_SPACE_RATIO,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c:1658 dml32_TruncToValidBPP() warn: ignoring unreachable code. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1894 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- .../drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c index 05fc14a47fba..0758e1da55a9 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c @@ -1654,10 +1654,6 @@ double dml32_TruncToValidBPP( else return DesiredBPP; } - - *RequiredSlots = dml_ceil(DesiredBPP / MaxLinkBPP * 64, 1); - - return BPP_INVALID; } // TruncToValidBPP double dml32_RequiredDTBCLK( -- 2.20.1.7.g153144c