From: kernel test robot <lkp@intel.com>
To: Quinn Tran <qutran@marvell.com>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Hannes Reinecke <hare@suse.de>,
Himanshu Madhani <himanshu.madhani@oracle.com>,
Larry Wisneski <Larry.Wisneski@marvell.com>,
Duane Grigsby <duane.grigsby@marvell.com>,
Rick Hicksted Jr <rhicksted@marvell.com>,
Nilesh Javali <njavali@marvell.com>,
GR-QLogic-Storage-Upstream@marvell.com,
"James E.J. Bottomley" <jejb@linux.ibm.com>
Subject: [PATCH] scsi: qla2xxx: edif: fix returnvar.cocci warnings
Date: Tue, 10 Aug 2021 09:50:26 +0800 [thread overview]
Message-ID: <20210810015026.GA36100@85d76ceac87d> (raw)
In-Reply-To: <202108100950.5Fau738z-lkp@intel.com>
From: kernel test robot <lkp@intel.com>
drivers/scsi/qla2xxx/qla_edif.c:213:25-29: Unneeded variable: "rval". Return "0" on line 264
Remove unneeded variable used to store return value.
Generated by: scripts/coccinelle/misc/returnvar.cocci
Fixes: 7ebb336e45ef ("scsi: qla2xxx: edif: Add start + stop bsgs")
CC: Quinn Tran <qutran@marvell.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: da454ebf578f6c542ba9f5b3ddb98db3ede109c1
commit: 7ebb336e45ef1ce23462c3bbd03779929008901f [2910/6223] scsi: qla2xxx: edif: Add start + stop bsgs
:::::: branch date: 14 hours ago
:::::: commit date: 2 weeks ago
qla_edif.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/scsi/qla2xxx/qla_edif.c
+++ b/drivers/scsi/qla2xxx/qla_edif.c
@@ -210,7 +210,6 @@ qla_edif_app_start(scsi_qla_host_t *vha,
static int
qla_edif_app_stop(scsi_qla_host_t *vha, struct bsg_job *bsg_job)
{
- int32_t rval = 0;
struct app_stop appstop;
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
struct fc_port *fcport, *tf;
@@ -261,7 +260,7 @@ qla_edif_app_stop(scsi_qla_host_t *vha,
/* no return interface to app - it assumes we cleaned up ok */
- return rval;
+ return 0;
}
int32_t
prev parent reply other threads:[~2021-08-10 1:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 1:50 [linux-next:master 2910/6223] drivers/scsi/qla2xxx/qla_edif.c:213:25-29: Unneeded variable: "rval". Return "0" on line 264 kernel test robot
2021-08-10 1:50 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210810015026.GA36100@85d76ceac87d \
--to=lkp@intel.com \
--cc=GR-QLogic-Storage-Upstream@marvell.com \
--cc=Larry.Wisneski@marvell.com \
--cc=duane.grigsby@marvell.com \
--cc=hare@suse.de \
--cc=himanshu.madhani@oracle.com \
--cc=jejb@linux.ibm.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=martin.petersen@oracle.com \
--cc=njavali@marvell.com \
--cc=qutran@marvell.com \
--cc=rhicksted@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox