summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDick Kennedy <dick.kennedy@broadcom.com>2020-06-30 14:49:48 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-02 23:06:33 -0400
commite5fcb81d40d44d3000e5ff8b6c9d87ea36a26faa (patch)
treeb97b677e8590a0d7ed92af84a50b211c3ff63126 /tools/perf/scripts/python
parent9f2475fe7406b8ef5f97099c4980021344872d9f (diff)
downloadlinux-e5fcb81d40d44d3000e5ff8b6c9d87ea36a26faa.tar.gz
linux-e5fcb81d40d44d3000e5ff8b6c9d87ea36a26faa.zip
scsi: lpfc: Fix unused assignment in lpfc_sli4_bsg_link_diag_test
Coverity reported the following error: Assigned value that is never used may represent unnecessary computation. The rc variable was initially assigned a value but in several cases, when an error case is detected, it is reassigned a new value. The initial value had little use. In code-reviewing this routine, it could use some cleanup: - Setting the initialization value to -ENODEV is a much better choice and lessens code in the routine. - The wasn't tracking logic errors vs no error and mailbox failure. Better to resolve by adding a status to track the mailbox failure and merge it with the logic error when the routine returns. Link: https://lore.kernel.org/r/20200630215001.70793-2-jsmart2021@gmail.com Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions