Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2612005rwl; Mon, 26 Dec 2022 18:48:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXuI7hGqOhgasCk1mP48LikW/mSRmk2hGlINvq9EdKlIJgnCdcpMBp3TRMTD3U5+dZHTu2Rj X-Received: by 2002:a05:6a00:230d:b0:581:1c:82a3 with SMTP id h13-20020a056a00230d00b00581001c82a3mr10424532pfh.1.1672109314342; Mon, 26 Dec 2022 18:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672109314; cv=none; d=google.com; s=arc-20160816; b=UdBnKMW38NKDsXrZBfJhKAr9OnOP7/z8Ldsj+XVkIOX1PtYF54RGP8tZiREcj19K2n 5YNOM3lB8H+EHfKDSoEaO2USebiyLBt7Xp5QWCa1lq8dH1Ms+DAgq+AlZ4Ze2rj3VZXx K80+Lg1XRJVvd/q60nhdVXTnWn47PsdETky8vEeqmSa0iKHayKFOjtxACIQyLbA0gU4d HS0BsUtDerondYoLydm0B1aGX4zf/+/o2oJVqnEniVkeMt9F8PM2JKFh+zDP8MGI4SD4 j53+3GT3IkAkMtn/2Cz8bpqI23F9+PKwMR3IBe9MhKR2zD32XvKget752NC09QPSIInL ATjw== 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=mM1qRMEEEXgNL6PY5dZPIp7tdNmnnPdSmMX3BaXFELI=; b=by8lwFFljNZ4qSxEsJVgKK8p39cmmWt82dF8b57M/EgD5bgB2yrZW6SvXXuO9azC5i AnIJMJG6qeXIMMe9+/1gIeqQu018uE5kIZhyrpLAI/OnuC/4j8nnDwUn4Gb6PvTwFse4 nMx2AQYdJZWbTyFdSlgReM+stWCSOjmpK9/wFkJJXj99JsqhA27PILFweny11Icoj2lj 4SzT/1N0upfUyvNfjOdlpmbT1qBEgI8CHY8iwOFKOCnAhNdby8QsPMQ8nymWoVfoHgnl 4/rfcymBuWY9XQkquOuLZp32vTOhRvvRlig3O0abbNXrX1LrbEdOfU7TzcK1oW4Mkmu8 Vqpw== 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 h67-20020a625346000000b00574694c97c7si12878823pfb.300.2022.12.26.18.48.25; Mon, 26 Dec 2022 18:48:34 -0800 (PST) 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 S231589AbiL0Cdm (ORCPT + 66 others); Mon, 26 Dec 2022 21:33:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiL0Cd3 (ORCPT ); Mon, 26 Dec 2022 21:33:29 -0500 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 43B9610CA; Mon, 26 Dec 2022 18:33:18 -0800 (PST) Received: by ajax-webmail-localhost.localdomain (Coremail) ; Tue, 27 Dec 2022 10:32:17 +0800 (GMT+08:00) X-Originating-IP: [182.148.15.35] Date: Tue, 27 Dec 2022 10:32:17 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: scsi_transport_sas: Fix the following coccicheck warning: 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: <4a48b6f.39a.185516c69cd.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwCXn+AxWapj12IKAA--.229W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQADB2FEYx0G1gAVsb 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 CmRyaXZlcnMvc2NzaS9zY3NpX3RyYW5zcG9ydF9zYXMuYzo1MjU6OS0xNzogV0FSTklORzogdXNl IHNjbnByaW50ZiBvciBzcHJpbnRmCmRyaXZlcnMvc2NzaS9zY3NpX3RyYW5zcG9ydF9zYXMuYzo1 NzI6OC0xNjogV0FSTklORzogdXNlIHNjbnByaW50ZiBvciBzcHJpbnRmCmRyaXZlcnMvc2NzaS9z Y3NpX3RyYW5zcG9ydF9zYXMuYzoxMTgwOjktMTc6IFdBUk5JTkc6IHVzZSBzY25wcmludGYgb3Ig c3ByaW50ZgoKU2lnbmVkLW9mZi1ieTogS2FpTG9uZyBXYW5nIDx3YW5na2FpbG9uZ0BqYXJpLmNu Pg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