summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNigel Christian <nigel.l.christian@gmail.com>2021-05-14 01:20:32 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2021-05-16 00:15:58 +0300
commit0edca4fc633ce223753c217f135a8036f516357b (patch)
tree21d3b7555274b18db9b2c92113e83dfafb07944e /drivers
parent7f2b3c8bcb7f414c3f3c0a25c352238cbcdc890d (diff)
downloadlinux-0edca4fc633ce223753c217f135a8036f516357b.tar.xz
scsi: be2iscsi: Remove redundant initialization
The nested for loop variables i and j in beiscsi_free_mem() are initialized twice. The values outside of the loops are redundant and can be removed. Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/YJ2mMHNqAgTNVVj+@fedora Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/be2iscsi/be_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 22cf7f4b8d8c..c15cc6c164d9 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -3858,8 +3858,6 @@ static void beiscsi_free_mem(struct beiscsi_hba *phba)
int i, j;
mem_descr = phba->init_mem;
- i = 0;
- j = 0;
for (i = 0; i < SE_MEM_MAX; i++) {
for (j = mem_descr->num_elements; j > 0; j--) {
dma_free_coherent(&phba->pcidev->dev,