Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2931035rdh; Wed, 27 Sep 2023 18:32:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEy/RrVeqUClRoMploFH7Oc1o4++mItsIPMwYX/XfarwGJJUFCA4pR/YiHnZ3IN0ArHRac9 X-Received: by 2002:a17:902:ab5a:b0:1bd:ca80:6fe6 with SMTP id ij26-20020a170902ab5a00b001bdca806fe6mr3366310plb.41.1695864769964; Wed, 27 Sep 2023 18:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695864769; cv=none; d=google.com; s=arc-20160816; b=xO1RfoUOH6vaCdY1/7/pRG/PSdQPK8CgDpfA/tYzzkUH/E6Pi0nNS1d76nN7lt1vvj e2yY3iLO+9hYwuENuDYhD+50b//Om5YfXj0UZTkjYvjBCzxmkURLBWtAm/WV8toHlvCU mSb1aUsDWk6vaQSQHpc+BNWy6QY7S2uT9/4MFAuJN9UaB7oJrl0+X/9Cc6TmyRr+RXbh 0GHoMm6sD0b63+apkVs3kQsJXD53ZnoOh3nNkWL9ll+TEKLDi4cz/g0fYyDyq7AzeLSC 0d1XgT3r4iln0xuw8hFnuU0aGBoNcG70tq/mbA3Kq+9EdK5ep+gDUck1sCc4Lq+k15+6 90DQ== 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=Yxv2odF6bAwDURip3LpZzR60gd5Ih+1aqJNH/D4Q2wc=; fh=biZ6EUk0JgOTQvhW0BINOd+a5C+XJzJDBnokO4v3fIY=; b=gTDxbCvFpSD7ZMhhEctzmLsuWhezkiU6aD+45mu/DuJNizbAYsczxhiFX10ChMLbqV g7+ncT/PKhyXXqU3eEYeFPHGHK/L1YlwPCpEUZJ2Nn+MI5TBYwOb8VkDDTk3d3prphM+ 5RT+tb4sWLwYE9O5Ooy+maCVnm37K+FYyw6LoWN4wTkaQZoqNLA0Y7e/9wD9dJZw6Fy5 es65VbYoSC5J2rwGwNpKQWtg+vFKROLteDalm5ocYDlvSpjKlUP+y1rT26LCfNC6U6I8 EX2j+flqD3fsZ0BBFbEkuK6/1z0bWcb5XYc3/wkUR3/hBygNRwpm3qGvkH0tA5x6okqO NfdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d6-20020a170902cec600b001c62161b18esi9304365plg.580.2023.09.27.18.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 18:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 9386F805DC70; Wed, 27 Sep 2023 18:30:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbjI1Baq (ORCPT + 99 others); Wed, 27 Sep 2023 21:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1Bap (ORCPT ); Wed, 27 Sep 2023 21:30:45 -0400 X-Greylist: delayed 187 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 27 Sep 2023 18:30:37 PDT Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72478AC; Wed, 27 Sep 2023 18:30:37 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 09:25:57 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 09:25:57 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: satishkh@cisco.com, sebaddel@cisco.com, kartilak@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.co Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: fnic: Clean up errors in fnic_scsi.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: <7b9428c6.895.18ad9648170.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDnhD8l1hRlCnS+AA--.588W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAJB2T8PZMAAQAEs8 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 18:30:56 -0700 (PDT) Rml4IHRoZSBmb2xsb3dpbmcgZXJyb3JzIHJlcG9ydGVkIGJ5IGNoZWNrcGF0Y2g6CgpFUlJPUjog c3BhY2UgcmVxdWlyZWQgYmVmb3JlIHRoZSBvcGVuIHBhcmVudGhlc2lzICcoJwoKU2lnbmVkLW9m Zi1ieTogS2FpTG9uZyBXYW5nIDx3YW5na2FpbG9uZ0BqYXJpLmNuPgotLS0KIGRyaXZlcnMvc2Nz aS9mbmljL2ZuaWNfc2NzaS5jIHwgMTQgKysrKysrKy0tLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA3 IGluc2VydGlvbnMoKyksIDcgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZHJpdmVycy9zY3Np L2ZuaWMvZm5pY19zY3NpLmMgYi9kcml2ZXJzL3Njc2kvZm5pYy9mbmljX3Njc2kuYwppbmRleCA5 NzYxYjJjOWRiNDguLmZiNDE4NGY3OTRkYiAxMDA2NDQKLS0tIGEvZHJpdmVycy9zY3NpL2ZuaWMv Zm5pY19zY3NpLmMKKysrIGIvZHJpdmVycy9zY3NpL2ZuaWMvZm5pY19zY3NpLmMKQEAgLTEwMTks MjIgKzEwMTksMjIgQEAgc3RhdGljIHZvaWQgZm5pY19mY3Bpb19pY21uZF9jbXBsX2hhbmRsZXIo c3RydWN0IGZuaWMgKmZuaWMsCiAJaW9fZHVyYXRpb25fdGltZSA9IGppZmZpZXNfdG9fbXNlY3Mo amlmZmllcykgLQogCQkJCQkJamlmZmllc190b19tc2VjcyhzdGFydF90aW1lKTsKIAotCWlmKGlv X2R1cmF0aW9uX3RpbWUgPD0gMTApCisJaWYgKGlvX2R1cmF0aW9uX3RpbWUgPD0gMTApCiAJCWF0 b21pYzY0X2luYygmZm5pY19zdGF0cy0+aW9fc3RhdHMuaW9fYnR3XzBfdG9fM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