Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp689362rwj; Sat, 29 Oct 2022 09:15:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59m+5+pyndLfvl9gIrmXz0IVPQhVFtoSSs1l+W2TfM/yDYYr6Ykilct+6j7aSTzfOiOZlY X-Received: by 2002:a17:90a:1690:b0:20a:8f70:14bb with SMTP id o16-20020a17090a169000b0020a8f7014bbmr5373025pja.115.1667060099816; Sat, 29 Oct 2022 09:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667060099; cv=none; d=google.com; s=arc-20160816; b=f3G7JkJRBLZQqjAJ1qf9n+3tVtl+0rHxLJdbzNeW/f/UfjaX06xDSA4VPKlHBMqJiw +RqN21xaM+nlideR03aGNGJVmjc40CozVpJ6TS84d9z5kgehzaxf73BlN8giBjcyw2U8 nW5otRR8DYTY5LWoRXUdQ39dOYdOI6h9hV6nzdxDgOegDn3Q2ek3lLI+PjPF/X1g50ol Ev7/xE5LMnEHyCglS2k9IqdQszYYGXE2e1zEjulWwvpi//VsMjwDMk9krDRkEN/hvo3k qdpocVzXA32FyEa/39JOV9ame9QxwvBA+RiD8g2W3ny+qGHU5XpQvcNwWLD1LLeqRSt/ nIww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=1T8kgiMz5Les5T7XwMa0JLDwy/J4TPC7FhN1AhJUoRA=; b=cALUugMiRKCyhf56gb0sZLq3ycN0yzYKKkdyL9/b5NIBQAeGw9KEkFU9q1mwcfHzr0 b4m8UcUfRzAkWqtpWeiKvUvM4KDioMHmhiHgcH3wShgloD68C566OdnXO4ueVb/QD/YB xjtCaqf9sojCUdRDaGbv3VXoFqhjSHYPPRUoVMlcN2IxwfsdCLbMnC9JPCQUC8D+SkJf 6ALGyzldmAXXAlrFZl8HuXaf2ob/FcRLbLvOoHDiW8Pl3uBbAMfhAu8oqjj9PVT1qD5M /PqG4KNVmTgj5XpTfzxGnN+f6RJs7ezRcD7InO0+/6yNfvgI09HJoiJVE3XM28FONBOV j//w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy3-20020a17090b020300b00200a43d4d58si2201387pjb.80.2022.10.29.09.14.48; Sat, 29 Oct 2022 09:14:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229711AbiJ2QBA (ORCPT + 99 others); Sat, 29 Oct 2022 12:01:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJ2QA7 (ORCPT ); Sat, 29 Oct 2022 12:00:59 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D88F12CCB5 for ; Sat, 29 Oct 2022 09:00:44 -0700 (PDT) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sat, 29 Oct 2022 23:56:03 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.81] Date: Sat, 29 Oct 2022 23:56:03 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: harry.wentland@amd.com, daniel@ffwll.ch, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, airlied@gmail.com, jun.lei@amd.com, Alvin.Lee2@amd.com, Nevenko.Stupar@amd.com, samson.tam@amd.com Cc: rdunlap@infradead.org, David.Galiffi@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: replace ternary operator with max() X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT6.0.1 build 20210329(c53f3fee) Copyright (c) 2002-2022 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <20f55cfc.42.1842475135f.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwB3jOITTV1jjuIAAA--.21W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAOB2FEYx0BKAAHs9 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKZHJpdmVycy9ncHUvZHJtL2Ft ZC9kaXNwbGF5L2RjL2RtbC9kY24zMi9kY24zMl9mcHUuYzo4ODc6NDktNTA6CldBUk5JTkcgb3Bw b3J0dW5pdHkgZm9yIG1heCgpCmRyaXZlcnMvZ3B1L2RybS9hbWQvZGl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