Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3471365pxj; Sun, 20 Jun 2021 22:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt8U53N4+AmBbieQmIRMmF7h8bMoBYbfntCLsNAZYiqNuq9dWhbrCG7vSu7s1X8/06qWG4 X-Received: by 2002:a05:6402:1a:: with SMTP id d26mr19582144edu.105.1624253076382; Sun, 20 Jun 2021 22:24:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624253076; cv=pass; d=google.com; s=arc-20160816; b=c9KbvJecxlS9mf5fVPzFsv2vGL3UbT1WWY8jc1GAVAq1w6wOJc1/XeVxafNCLXdv5M DeXO1Schzr8uOupNqfQ94/dCtvNbsFbWWZrU2swk41CrLXVCKchtgsYyTtP78s9TqQw7 6HdEyYkMuZdRcOARoDH6Ht343CdUpmlD2HlSljrcC1S578MbEhfdZHVttwHRZ+qBuOgr q6g/Ump1w4H87HG93+grejHO6dIBzZaqX3c9vrablHWwymvATWtN0ltXHB9bVHSTyZib cpueXELVwRQJBLqiX1fg8ACjB7eblym3AYQ/aU6ionSI2RMqXA4dXRKr/91w+J0B7jel MHuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=DT6sTws+zXkrGccPzPoqP92gtbXJGgtRHL5BXoZjXkQ=; b=cYR9TFseWTB03SLQPQXMkRQ4OimSO0EFZ3V7Mov7XkdH0qM9xZV5FxUDrojHaYaqIy gxUf5Qfmh8IbSaV3Eni6MD04BfpdE33YXFRYjuO4a/qJY9+OVdzf88wezidTqii8kPGw BBr59ds4Wy7K0pCiuT1IVbxzWLgZ3NVaOLgcgI3G9Pn+yHqRJvbnpN+P1GP6J+inZ4hp id0cyPkrSm/1mSW95iIaliNp31YJZJJiBA0+GEdCHT1luf4hPKpUrQGaDqZkRXWFzuIA wdDkpOBuQuI2I5J8EJYihyEtpKPcP2WtqkYiI73d1OPrmf11JWV430ZCnAI7Lymge53p KDaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=NkWx1swg; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si6917555ejl.335.2021.06.20.22.24.13; Sun, 20 Jun 2021 22:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=NkWx1swg; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbhFUFZ3 (ORCPT + 99 others); Mon, 21 Jun 2021 01:25:29 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:17990 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhFUFZ3 (ORCPT ); Mon, 21 Jun 2021 01:25:29 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15L5GX9N017829; Sun, 20 Jun 2021 22:23:13 -0700 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-0016f401.pphosted.com with ESMTP id 399g3qn7kw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jun 2021 22:23:12 -0700 Received: from m0045851.ppops.net (m0045851.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 15L5IDL9020280; Sun, 20 Jun 2021 22:23:11 -0700 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2174.outbound.protection.outlook.com [104.47.57.174]) by mx0b-0016f401.pphosted.com with ESMTP id 399g3qn7kt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 20 Jun 2021 22:23:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iUGQox4f9VGubJlFwiLCSWSrq0Wb3IZH+hMSsklPR7SINvr52BRp/e67Net6fiBTO8swrfLJoW559lMCaL9ddCYecsjLEkXYzh/DOVaA6Xw5E6PLuAvVu1yJcjGkIj2Lu8sj4qN2muD3F/ViVr4NaZ+ZVsAHwuhLe72GytJlDWoKbmMBBrv2WlvadN3S3Tt1Hkjw5/Ehku5derL9PBUw/rz4uM7MZq8FPQyuoVbMw+60hzPj9UkM+eN+u2kCgWpICe/ynCA0hft40z0aExfU3cJcQs6oKy++5xfg5oXNOhFOV4XlJ6ok6tPeHduceIKpQMNKrIVhigNFmO7YnleJaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DT6sTws+zXkrGccPzPoqP92gtbXJGgtRHL5BXoZjXkQ=; b=LPw+U9fvmNuIEzhTSgp/OTyBddmss/6sS2423/evsuYxLF4sShvCdvXRsp2An98SzyT2oiBYRzkEfZSg6BkOD3F9cLXm6lPQDVINLqRHMSITqZVOlBbgtILt/pi+nb4+l8mETRhNjsBnOvJsRF8fXJrzR4VYqN+z0OtNtszsT+gYWrtgG6akqs3UCttURrb2SkkGXON5QzVrNslQo5OOeAUHgKOGJcLSUhyiLSA4ZlQu9AzpX3pBZ/THSywP3MkCWJ+DCqK9MvvxPfONER98c/jL9SOAOmCPOW8yy/Fs04msabReO7MBLSbukASuTzUCx/MIN7y4bIgLyNj4/VeOZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DT6sTws+zXkrGccPzPoqP92gtbXJGgtRHL5BXoZjXkQ=; b=NkWx1swgm+8rlV1NUP32oFXM98CQJyOBG1O7Bu3YiJJnPNv53m3OoHSKv5YlOvgWZgjDcDjVUFa27Cvwyrzu0MySmNXJyNImferUoODFz96EYEx1bEYgzjoOS9Qtv+V2b1OarshcrA9UMUdMVmsP9y3/sYWVMN2VJ0/FSYX2pus= Received: from DM6PR18MB3034.namprd18.prod.outlook.com (2603:10b6:5:18c::32) by DM6PR18MB3035.namprd18.prod.outlook.com (2603:10b6:5:185::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.19; Mon, 21 Jun 2021 05:23:10 +0000 Received: from DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::b012:643f:6fd6:350a]) by DM6PR18MB3034.namprd18.prod.outlook.com ([fe80::b012:643f:6fd6:350a%3]) with mapi id 15.20.4242.023; Mon, 21 Jun 2021 05:23:10 +0000 From: Saurav Kashyap To: SeongJae Park CC: Javed Hasan , GR-QLogic-Storage-Upstream , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "himanshu.madhani@oracle.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , SeongJae Park Subject: RE: [EXT] [PATCH] scsi: bnx2fc: Remove meaningless 'bnx2fc_abts_cleanup()' return value assignment Thread-Topic: [EXT] [PATCH] scsi: bnx2fc: Remove meaningless 'bnx2fc_abts_cleanup()' return value assignment Thread-Index: AQHXZGFW/m6s108dKEO3/NZ6aDBFWasd8fYQ Date: Mon, 21 Jun 2021 05:23:10 +0000 Message-ID: References: <20210618164514.6299-1-sj38.park@gmail.com> In-Reply-To: <20210618164514.6299-1-sj38.park@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [103.82.96.51] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e881f63a-cef9-4243-77ea-08d93474a8de x-ms-traffictypediagnostic: DM6PR18MB3035: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1201; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: J52OXRP73UF6qKC+5mfrS4duxRctsQ3Ni4x81Bg1JhO/+C+ZDfZb+VAe2BNP1Ruc9zLutKEavo/P+zLnA5RGgawYlixhYlnU0GR5BgqIZwyS+AFkcSiKZYgceqDEjgDvTGsjyhLDSubgCZAGpwQdgi7t89MqbhK6I78YcotuEucRrfdlIQZta2J1tV2/FgFzW8am2XDR+47Kqcvex2E0qwMuma6zkWeqabFsU8U0ReqK+YgjdA7NSi4TL34si5nrGhGuN9gzZnjfrDb9Qf9OP2jPeLfEXwX1AcMW0Ohq/rWLDeYZ37kPrnSx6smrKPPVw+dPBpzA91aVih3695gK+pcxYsVFSkG+OKuS7iuK9nYtG0ijlJFGiwTxV9DW308A74Uc8b7Z/bpvYKtSV9DIiR0CN77hg4ifPA6hTopkk8fy0jQZTxz2V4AEvVyViNBxztwTkuDFY5PQVmyQIGU41TrF8S3n0wGsKcfZ+poANuWVaIGmzgrbaCfz1LJdKF1Q2WGr9tWuBFqVLHn8KrJu4dAiR+tdwGNiv8WikjPbtqp4Bku2rQd8qrxcgwskZLVi+09WFHQt69q7MwO2fIRfW2BKpj7NxAtTMqsvEihYCLY= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR18MB3034.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(136003)(346002)(366004)(39860400002)(376002)(8676002)(8936002)(55016002)(6506007)(478600001)(4326008)(186003)(9686003)(33656002)(53546011)(26005)(83380400001)(76116006)(66556008)(71200400001)(6916009)(52536014)(38100700002)(86362001)(54906003)(7696005)(66946007)(66476007)(2906002)(66446008)(122000001)(64756008)(316002)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5Kh2aNon/I8JbzdDKfXXha3wdXbF3XfTjxtwdOI+rG/kpErHLTZpyxxqg6Nm?= =?us-ascii?Q?DNF3OPBbBRUiZtw/Qf1DvcQYZx0tLvU5toOX3hclyhOr+akM23z6161JIzbX?= =?us-ascii?Q?iL7cN8oDcI/SYtvu5HWZWSu8pe8+mOxEJ4oHOkw0w03zGRtSnOPLouWxHkUJ?= =?us-ascii?Q?o00o0Tc8D6yGFw+tL1rCW7AH7j1G77obl+EXINLKjCBMdevTkz5q+hTQX7jX?= =?us-ascii?Q?jVbwyaix3Jw7H30iuq7Rv04IhPH9B96BCK27tjn6aJHHK/HWytMqJVpupYhK?= =?us-ascii?Q?ag6tV2TiI7pYlA5EipgHDvMiU4KLso9oOAqO4gUqR8mwrKKzGqa0uLG75W4s?= =?us-asc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u6f0xjtPDOcSino+pTi79zA587t+LtuJ?= =?us-ascii?Q?uF2w/M2jQAnmHpU1ShPaVNteeTO7fujAhADY1ErBwxjVQetY5g4/EKnMrhF/?= =?us-ascii?Q?LIQ=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR18MB3034.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e881f63a-cef9-4243-77ea-08d93474a8de X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2021 05:23:10.2179 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: x2aDj9cHqpj5fkIqbScMPNQBgZF10T+O8JvctTTAsqrZgxXBqNICZrSpWQETjOWhTh2+3qVtwd0yAWx7z8E+ew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB3035 X-Proofpoint-GUID: eABGIRwQPbsFBudGMlv_oM8ilsb_Teki X-Proofpoint-ORIG-GUID: sS9PNEQGuNlnOJqr05dX7IiEDNf6bQbo X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-06-21_01:2021-06-20,2021-06-21 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi SeongJae, > -----Original Message----- > From: SeongJae Park > Sent: Friday, June 18, 2021 10:15 PM > To: Saurav Kashyap > Cc: Javed Hasan ; GR-QLogic-Storage-Upstream QLogic-Storage-Upstream@marvell.com>; jejb@linux.ibm.com; > martin.petersen@oracle.com; himanshu.madhani@oracle.com; linux- > scsi@vger.kernel.org; linux-kernel@vger.kernel.org; SeongJae Park > > Subject: [EXT] [PATCH] scsi: bnx2fc: Remove meaningless > 'bnx2fc_abts_cleanup()' return value assignment >=20 > External Email >=20 > ---------------------------------------------------------------------- > From: SeongJae Park >=20 > Commit 122c81c563b0 ("scsi: bnx2fc: Return failure if io_req is already > in ABTS processing") made 'bnx2fc_eh_abort()' to return 'FAILED' > when 'io_req' is alrady in ABTS processing, regardless of the return > value of 'bnx2fc_abts_cleanup()'. But, it left the assignment of the > return value of 'bnx2fc_abts_cleanup()' to 'rc', which is meaningless > now. This commit removes it. >=20 > This issue was discovered and resolved using Coverity Static Analysis > Security Testing (SAST) by Synopsys, Inc. >=20 > Fixes: 122c81c563b0 ("scsi: bnx2fc: Return failure if io_req is already i= n ABTS > processing") > Signed-off-by: SeongJae Park > --- > drivers/scsi/bnx2fc/bnx2fc_io.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc= _io.c > index ed300a279a38..f2996a9b2f63 100644 > --- a/drivers/scsi/bnx2fc/bnx2fc_io.c > +++ b/drivers/scsi/bnx2fc/bnx2fc_io.c > @@ -1213,7 +1213,7 @@ int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) > * cleanup the command and return that I/O was successfully > * aborted. > */ > - rc =3D bnx2fc_abts_cleanup(io_req); > + bnx2fc_abts_cleanup(io_req); > /* This only occurs when an task abort was requested while > ABTS > is in progress. Setting the IO_CLEANUP flag will skip the > RRQ process in the case when the fw generated SCSI_CMD > cmpl Acked-by: Saurav Kashyap Thanks, ~Saurav=20 > -- > 2.17.1