Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1791331pxj; Fri, 18 Jun 2021 15:57:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvvt7hwnHHdvkVCLalMGFRTc2SVV3E8v4GUUglBwZBc9DZvYshW5rHPxc3/QRnNBNxUwim X-Received: by 2002:a50:fd89:: with SMTP id o9mr7916536edt.336.1624057041883; Fri, 18 Jun 2021 15:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624057041; cv=none; d=google.com; s=arc-20160816; b=p5wC7K3vWWNzmAKLjpI2c7A+HXft5xzJQ16UzSSqM+S1c9EnEo0Jrxqv3RdIEUx092 yrlGiz4BH9flvNUuZyx64urzJIflyiUu3SRaWVe6h6C9Ak+/ilxFcSjIgU97eLVnMLCl xC1h2ZPlO6NHcz0iayGFaT6NGTyK2b8yTwrzmj9XKJXRqTrT15sOJaruvupQ0BxY0Cf2 Sm51WyEO0qDBZ0rCXNzQJbqYwhUjg4APlxQexK1OyhlaVJyLqX5PUsdMNeskfjXv2FCD YplIdBk3eoz5cf7rN4EZrWslcE5DCwdXIazUk4kTFx8jHMKkUa3AlWqJN5JXCE8BJItH 9x/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=SlRhINCkDHV1IRhp7Zp5ld96OYqv7fiIsGZ4mAFsnAA=; b=r7/QT/oiD3cu9ndtFvJWG5Owfh/J8pADfZVWwDPGXZ0VbmBpQJY6izSHii1z7IVg+a TgOKttL8z9WgYaJHG38zpJSFHh5eBBkCu8avVsCA37qht9qZkj+QIcwIP1iweNrAGyEl urz0hHu4KPC1x/jKaM4V1yKiO4IDw3WZKN1mXAvkzqVMI0NiNSW+1V3E+8xicW2yIwQP xMOEeeZCp67UjQt2JiCCJyoqO24Fa+5SymmlXp1i1pwPnAxrzGGPxfUADgn3FU4l0o5y QNOxm1YPH7UHjdqZ5cRDnpfhYrxAS5iDNgoo5zOdV6kySpsRompFUSEObuMblNk/HSkR OIPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gcxlnqb8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm30si2535674ejb.495.2021.06.18.15.56.59; Fri, 18 Jun 2021 15:57:21 -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=@gmail.com header.s=20161025 header.b=gcxlnqb8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235953AbhFRQrd (ORCPT + 99 others); Fri, 18 Jun 2021 12:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235701AbhFRQrb (ORCPT ); Fri, 18 Jun 2021 12:47:31 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4230C061574; Fri, 18 Jun 2021 09:45:21 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id r20so8025815qtp.3; Fri, 18 Jun 2021 09:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=SlRhINCkDHV1IRhp7Zp5ld96OYqv7fiIsGZ4mAFsnAA=; b=gcxlnqb8U0xKOTAqGd7G9Rz8ixdZcDzVWYcqX3qmP7US/Ky3FdK0RIMJCFTTmR2Lfo Kh4MMRYkjftLBLMAh/VJ3AfWRX2lV3cTyWZja3AwB3WGTXiGr35UdAXYpR1EUwSZ6clR UWabVE0WCSz3KIEV/Tq/9ljt75y5YmFz+akGBUlDAVCTSpKeAk1ynm8jsc24ydi748CH l9idgporYxrQhrbGBKBAI/Lzi7m1bixfGAdfaAIkO1d9pUlbmsZjnml58ElQEIkUDw2w OJjfLrIV2u21ub+WM2kYkyuOaPXOZOTFYT3cNrDFX0fty8ShA42yH0LSxyoc6FdOobMW Nraw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SlRhINCkDHV1IRhp7Zp5ld96OYqv7fiIsGZ4mAFsnAA=; b=iRHq32vKmg552BmBWgu9y+81qNr25UKvR6QcnKml6BZoqj6wkzQsUTNsmIm+RCnlFx kPDbgSftN6UP631TC/6xMVkgA2MzcQkGuspcppC+5O68Lk0zwvEfXzX0oB98adodrzae pkof2ID83yls9jRg5zlnCHy4LBP5dhcwiJH5tLZP2st0KR6muO42KgVA5CEHJw/kfkVg 8p8T4Ho8hTqTeYYRfDyUk21vJA/B0vqmGSpx+t5iO43LVv0raU1y2K9dLxD3v0/ZSCca dxYHrR9YTuuN/PnZhCHZj+Op0kznzKNBgQTKABowIUUKfJyh8T3JgoUfu+RhRqAUn8W3 U9FA== X-Gm-Message-State: AOAM530symcb/PXI3Wog8n4Nk4c7HThzA0o1rpt4WWUxXiaVNfBaKPiy OZYpTdhG+rI65aCypEVY+uk= X-Received: by 2002:ac8:7c9c:: with SMTP id y28mr11311727qtv.192.1624034720817; Fri, 18 Jun 2021 09:45:20 -0700 (PDT) Received: from localhost.localdomain (ec2-35-169-212-159.compute-1.amazonaws.com. [35.169.212.159]) by smtp.gmail.com with ESMTPSA id b10sm4383878qkh.45.2021.06.18.09.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 09:45:20 -0700 (PDT) From: SeongJae Park To: skashyap@marvell.com Cc: jhasan@marvell.com, GR-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: [PATCH] scsi: bnx2fc: Remove meaningless 'bnx2fc_abts_cleanup()' return value assignment Date: Fri, 18 Jun 2021 16:45:14 +0000 Message-Id: <20210618164514.6299-1-sj38.park@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park 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. This issue was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. Fixes: 122c81c563b0 ("scsi: bnx2fc: Return failure if io_req is already in ABTS processing") Signed-off-by: SeongJae Park --- drivers/scsi/bnx2fc/bnx2fc_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = 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 -- 2.17.1