Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2949767rdh; Wed, 27 Sep 2023 19:32:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8xxzljVC8rJdcOVoKM69v2dPL/jOl8AGdKnpaKjK0ixaU6zh1uQTrl3s8n/ltXFqOv3P8 X-Received: by 2002:a17:90b:1d81:b0:269:a96:981a with SMTP id pf1-20020a17090b1d8100b002690a96981amr6304861pjb.5.1695868355141; Wed, 27 Sep 2023 19:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695868355; cv=none; d=google.com; s=arc-20160816; b=l9na5Cl8bIqLulXHjitTQQZWICfNzvGEPLatuzHeMqkKANy1mL4K73y9qasOtIs2l9 MbwnPbbwK4UaSUmmvtpRQkA8rr5s+/nify8ZNAvikd+7u3EMSzHMQMTvu+pIqGIQCoi2 RQAYPVSfKLCjZ/Ipt3eFjkkm+oS+NJcRN9j9sIGFr1BK71yoGH7lvteSns6RNQJ8hWb1 6glsuYC72cOp0jtOUfWwgyBh7PGEBFzDMlgsUk2NVFCTJI1cKPgofAwiCjP6nAjFXO+b MfyBowDE3pooaBvIeHudXiIsWHg8bbo2zSFTYrZ9IC4MB5vF3pk7se0dNOU7YnwWnZpx wCbg== 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=r0t9aU598AlTaW8dCtFU/I7R28sZCtQHsDAZhhCJt1w=; fh=7XxrSkeWz746vvy4RO2T3/Acu1znasH/bthfsQTCQZk=; b=iboW5lADPWCfMP7kxAIk9s15J3a98lmvl5wwaxESe7K+a8RNzqIk7FTJ0JVC02jmuf ClHv1HPvOswG2fg61wCr+xdqPv+HJV5LA6VFXFb8sM2SJAc6vFR/AOy5NwMD0r2LsiZZ qbNPytWezS2Bc6lPppf48uvKwxG5BOj+LNxcCVdaXH459Owf4iW6TT7O+Zq24kP5bZHf DW1kuMuFjPyfE+AbjtOJu/27NztGPAaqthHHQXM0K4br0mqOxukl3354J1bG7/p8yK0c rfuCAIBDstWXgg9jXJWtAwyse1xzrUkZ0c21YsTC6vBTThG1rOfGoZ9Fp70OwQvX2C6b X/6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x1-20020a17090a970100b0027450695a78si12208082pjo.172.2023.09.27.19.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 19:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0804380DB9D0; Wed, 27 Sep 2023 19:30:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjI1C3v (ORCPT + 99 others); Wed, 27 Sep 2023 22:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1C3u (ORCPT ); Wed, 27 Sep 2023 22:29:50 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 782C2102; Wed, 27 Sep 2023 19:29:48 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 10:28:29 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 10:28:29 +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: lpfc: Clean up errors in lpfc_init.c X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 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: <3ee2affd.8a2.18ad99dc0ef.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDnhD_N5BRlPny+AA--.596W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAJB2T8PZMAAQAesm X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VW3Jw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 27 Sep 2023 19:30:10 -0700 (PDT) Rml4IHRoZSBmb2xsb3dpbmcgZXJyb3JzIHJlcG9ydGVkIGJ5IGNoZWNrcGF0Y2g6Cg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