* [linux-next:master 2910/6223] drivers/scsi/qla2xxx/qla_edif.c:213:25-29: Unneeded variable: "rval". Return "0" on line 264
@ 2021-08-10 1:50 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-10 1:50 UTC (permalink / raw)
To: Quinn Tran
Cc: kbuild-all, Linux Memory Management List, Martin K. Petersen,
Hannes Reinecke, Himanshu Madhani, Larry Wisneski, Duane Grigsby,
Rick Hicksted Jr, Nilesh Javali
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
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
config: i386-randconfig-c021-20210809 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> drivers/scsi/qla2xxx/qla_edif.c:213:25-29: Unneeded variable: "rval". Return "0" on line 264
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32773 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [linux-next:master 2910/6223] drivers/scsi/qla2xxx/qla_edif.c:213:25-29: Unneeded variable: "rval". Return "0" on line 264
@ 2021-08-10 1:50 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-10 1:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
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
config: i386-randconfig-c021-20210809 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> drivers/scsi/qla2xxx/qla_edif.c:213:25-29: Unneeded variable: "rval". Return "0" on line 264
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32773 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] scsi: qla2xxx: edif: fix returnvar.cocci warnings
2021-08-10 1:50 ` kernel test robot
@ 2021-08-10 1:50 ` kernel test robot
-1 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-10 1:50 UTC (permalink / raw)
To: Quinn Tran
Cc: kbuild-all, Linux Memory Management List, Martin K. Petersen,
Hannes Reinecke, Himanshu Madhani, Larry Wisneski, Duane Grigsby,
Rick Hicksted Jr, Nilesh Javali, GR-QLogic-Storage-Upstream,
James E.J. Bottomley
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] scsi: qla2xxx: edif: fix returnvar.cocci warnings
@ 2021-08-10 1:50 ` kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2021-08-10 1:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-10 1:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-08-10 1:50 ` [PATCH] scsi: qla2xxx: edif: fix returnvar.cocci warnings kernel test robot
2021-08-10 1:50 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.