Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp758357rwj; Sat, 29 Oct 2022 10:19:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oHLCACRUlzoHvFWk7UUMvA5wJnFNyhYBlNWZPr6Fk3v/Z8pupVTWkUdxkiej6IuHMgIIl X-Received: by 2002:a17:907:a428:b0:78d:9fab:84fb with SMTP id sg40-20020a170907a42800b0078d9fab84fbmr4467195ejc.694.1667063960556; Sat, 29 Oct 2022 10:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667063960; cv=none; d=google.com; s=arc-20160816; b=y9OnB5Kf/SQxKETKlMxuDWMAjWhDK0daeQvRRFgdaftv96D98cXJf/6eLA6FbxS145 TME+9SQfKXL7Tqz+7jQPf17Y//BYsMIL5vMkb4kXO/T8TzGvlmbe/AHCj9PrES28e2hl QXXr5lao2LW7BLEmsjFxeh1AY7vJlCcaVFvT7mnryByofUfcfFjYYC9UhANvYdieGmCP 30VgnTLVchP51eqp2PePMSx2kbURw9QvLgdqRrq5syDY4ZSLj6dY62CCZAGsej/Xo2za ShzpmMkE+A7JyZDir1oft7Y9cr2Ml7oMW7lzLDElFaQUal/fSXrrQM7WuWRp20RF5zsQ ViJg== 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=jVgYeJjx4M7KRCxchwWysHYQhNq2yfh93bqGLVpsrd4=; b=kK5yc+40kQutFTROvm1pKNkdJzODFT5YnHZyR5WxYhSISv7TSn44MNrUAPIyYV1oTu 03B0EdCdh2hkIkOmU2PPjRIwIdXW7anA0s5/yBSSCYtIvPTButwkaoIBrFisYeWj5ISL j1t7AAn2Am5AG0O7XUCBwL6hefiIBl6rzmynsNjgoTuylsuszpd4PfoL7N9HFEu1d1FD GX2/cMxZlTsfe6g2ChV0zKfjco5GTGgdmYRT7wkVequycVXprEtn8+H20tqLCgjAhp3f ldxSC2W2yMtXMbVqduMdxagoRPq1rZ4mX8L8OkLiNj4N1MlZ1c0imBEKEDX5KPT03wYG mJQQ== 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 nb15-20020a1709071c8f00b00780805b99ccsi2675598ejc.648.2022.10.29.10.18.51; Sat, 29 Oct 2022 10:19:20 -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 S229716AbiJ2QYY (ORCPT + 99 others); Sat, 29 Oct 2022 12:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiJ2QYX (ORCPT ); Sat, 29 Oct 2022 12:24:23 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9969AE7A; Sat, 29 Oct 2022 09:24:22 -0700 (PDT) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Sun, 30 Oct 2022 00:19:42 +0800 (GMT+08:00) X-Originating-IP: [182.148.13.81] Date: Sun, 30 Oct 2022 00:19:42 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: wangkailong@jari.cn To: njavali@marvell.com, GR-QLogic-Storage-Upstream@marvell.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: qla2xxx: 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: <7ce8e1aa.43.184248abc71.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3C+KeUl1juOMAAA--.21W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAOB2FEYx0BLQADs8 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 Rml4IHRoZSBmb2xsb3dpbmcgY29jY2ljaGVjayB3YXJuaW5nOgoKZHJpdmVycy9zY3NpL3FsYTJ4 eHgvcWxhX2RiZy5jOjY4OTogV0FSTklORyBvcHBvcnR1bml0eSBmb3IgbWF4KCkKClNpZ25lZC1v ZmYtYnk6IEthaUxvbmcgV2FuZyA8d2FuZ2thaWxvbmdAamFyaS5jbj4KLS0tCiBkcml2ZXJzL3Nj c2kvcWxhMnh4eC9xbGFfZGJnLmMgfCAzICstLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9u KCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2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