Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp688977rwj; Sat, 29 Oct 2022 09:14:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ivr71IfGCoqNg/ngBdXbtNVlAH7/hCUl0MZu8SiVCGILBGgWj2O7I5AwJaV+ihCJYMKKe X-Received: by 2002:a17:90b:3e8d:b0:20d:2ab9:517f with SMTP id rj13-20020a17090b3e8d00b0020d2ab9517fmr5301081pjb.88.1667060078205; Sat, 29 Oct 2022 09:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667060078; cv=none; d=google.com; s=arc-20160816; b=P4yR0Kc+cxmPpKyAAEh/OrlKPfBc19m5WKqcgqotrOo+49JOS9q7ImfNrkOCC86iyF 3acNqcRJpjUrY3YAMhbkjggxFDTkUl8oWL+lJnYtmUWoTY+8cbUxQDqBC8zY2ynxbSNY RIYIxrZ68mnzEsCzVIpkufz512iRbXsrR9CdlIDQ8WXDSPCej9KOo73i3/gKlVtDs2IW uuDGlgzlup/iTE/rYDFoJduopBV1VweadZnYE9Zi9r/rMZZ6l9ZCIPNeunXTUN9gL/ii mifpYhUkyfCsVaBRiUcH5iZIevN8yEqzs7oHfRdZE5H+JudskotvoLEbs7BjBQPZBu9f RAtg== 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=R/As33T0tKJpsdWmQbqMTwA5Nv7rBxxPj6Bz9y/COZk=; b=eGh+lsNCG4GepLbMx9isF70joQwocLo7+EBzCx04mSY4L3eoIaPHpV4/JpihjiGjNw G3v/w4CsLr7wZJQpQM1B5oCh49+iQvZUMnw08XGFja6Q5MO3QGrEpnZcaYAljwBrnRmv Ci0oQ6o6MGl4UDQFGSX3jEHEOLu0FfXUlkYGoFaANQpZ3H90hrwKlJqXmfQZ3zptn1sT tiOPzVertG0naL5e9jsN1HzJKwmkftGTNZOdib1kfDhIPkf+QUkJZr68C8l0hUahVu9g GoGk2Tdl63AnCbUH8U5/OMVhkF5TBXTeLUljILQiMoOHuZiuQ9qf8tVXf1KlhqCeoIR4 rcGw== 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 kx10-20020a17090b228a00b0020ad4d5b9e8si2106425pjb.89.2022.10.29.09.14.26; Sat, 29 Oct 2022 09:14:38 -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 S229717AbiJ2Ppq (ORCPT + 99 others); Sat, 29 Oct 2022 11:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiJ2Ppf (ORCPT ); Sat, 29 Oct 2022 11:45:35 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3524D631ED for ; Sat, 29 Oct 2022 08:45:33 -0700 (PDT) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sat, 29 Oct 2022 23:40:58 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.81] Date: Sat, 29 Oct 2022 23:40:58 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: Kai.Makisara@kolumbus.fi, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: st: 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: <317f9e05.40.18424674406.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCXq+GKSV1jUOEAAA--.20W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAOB2FEYx0BKAADs5 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 Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKZHJpdmVycy9zY3NpL3N0LmM6 MTU3NzogV0FSTklORyBvcHBvcnR1bml0eSBmb3IgbWF4KCkKClNpZ25lZC1vZmYtYnk6IEthaUxv bmcgV2FuZyA8d2FuZ2thaWxvbmdAamFyaS5jbj4KLS0tCiBkcml2ZXJzL3Njc2kvc3QuYyB8IDMg Ky0tCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDIgZGVsZXRpb25zKC0pCgpkaWZm IC0tZ2l0IGEvZHJpdmVycy9zY3NpL3N0LmMgYi9kcml2ZX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