All of lore.kernel.org
 help / color / mirror / Atom feed
From: lijian_8010a29@163.com
To: james.smart@broadcom.com, dick.kennedy@broadcom.com,
	jejb@linux.ibm.com, martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
	lijian <lijian@yulong.com>
Subject: [PATCH] scsi: lpfc: lpfc_sli: Removed unnecessary 'return'
Date: Wed,  9 Jun 2021 16:01:51 +0800	[thread overview]
Message-ID: <20210609080151.489666-1-lijian_8010a29@163.com> (raw)

From: lijian <lijian@yulong.com>

Removed unnecessary 'return'.

Signed-off-by: lijian <lijian@yulong.com>
---
 drivers/scsi/lpfc/lpfc_sli.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 368cbc10e0cf..14e1ddc5ac17 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -1544,7 +1544,6 @@ lpfc_sli_cancel_iocbs(struct lpfc_hba *phba, struct list_head *iocblist,
 			lpfc_sli_release_iocbq(phba, piocb);
 		}
 	}
-	return;
 }
 
 /**
@@ -2054,8 +2053,6 @@ lpfc_sli_resume_iocb(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
 		else
 			lpfc_sli_update_full_ring(phba, pring);
 	}
-
-	return;
 }
 
 /**
@@ -2566,7 +2563,6 @@ lpfc_sli_wake_mbox_wait(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmboxq)
 	if (pmbox_done)
 		complete(pmbox_done);
 	spin_unlock_irqrestore(&phba->hbalock, drvr_flag);
-	return;
 }
 
 static void
@@ -3560,8 +3556,6 @@ lpfc_sli_rsp_pointers_error(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
 	phba->work_hs = HS_FFER3;
 
 	lpfc_worker_wake_up(phba);
-
-	return;
 }
 
 /**
@@ -3608,7 +3602,6 @@ void lpfc_poll_eratt(struct timer_list *t)
 		mod_timer(&phba->eratt_poll,
 			  jiffies +
 			  msecs_to_jiffies(1000 * phba->eratt_poll_interval));
-	return;
 }
 
 
@@ -4135,7 +4128,6 @@ lpfc_sli_handle_slow_ring_event_s3(struct lpfc_hba *phba,
 	}
 
 	spin_unlock_irqrestore(&phba->hbalock, iflag);
-	return;
 }
 
 /**
@@ -6439,8 +6431,6 @@ lpfc_set_features(struct lpfc_hba *phba, LPFC_MBOXQ_t *mbox,
 		mbox->u.mqe.un.set_feature.param_len = 4;
 		break;
 	}
-
-	return;
 }
 
 /**
@@ -8162,7 +8152,6 @@ lpfc_mbox_timeout(struct timer_list *t)
 
 	if (!tmo_posted)
 		lpfc_worker_wake_up(phba);
-	return;
 }
 
 /**
@@ -11572,7 +11561,6 @@ lpfc_sli_abort_els_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
 	}
 release_iocb:
 	lpfc_sli_release_iocbq(phba, cmdiocb);
-	return;
 }
 
 /**
@@ -11939,7 +11927,6 @@ lpfc_sli_abort_fcp_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
 			cmdiocb->iotag, rspiocb->iocb.ulpStatus,
 			rspiocb->iocb.un.ulpWord[4]);
 	lpfc_sli_release_iocbq(phba, cmdiocb);
-	return;
 }
 
 /**
@@ -12219,7 +12206,6 @@ lpfc_sli_wake_iocb_wait(struct lpfc_hba *phba,
 	if (pdone_q)
 		wake_up(pdone_q);
 	spin_unlock_irqrestore(&phba->hbalock, iflags);
-	return;
 }
 
 /**
@@ -15078,7 +15064,6 @@ lpfc_sli4_queue_free(struct lpfc_queue *queue)
 		list_del(&queue->cpu_list);
 
 	kfree(queue);
-	return;
 }
 
 /**
@@ -15306,7 +15291,6 @@ lpfc_modify_hba_eq_delay(struct lpfc_hba *phba, uint32_t startq,
 				shdr_status, shdr_add_status, rc);
 	}
 	mempool_free(mbox, phba->mbox_mem_pool);
-	return;
 }
 
 /**
@@ -19967,7 +19951,6 @@ lpfc_sli_read_link_ste(struct lpfc_hba *phba)
 
 out:
 	kfree(rgn23_data);
-	return;
 }
 
 /**
-- 
2.25.1



                 reply	other threads:[~2021-06-09  8:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210609080151.489666-1-lijian_8010a29@163.com \
    --to=lijian_8010a29@163.com \
    --cc=dick.kennedy@broadcom.com \
    --cc=james.smart@broadcom.com \
    --cc=jejb@linux.ibm.com \
    --cc=lijian@yulong.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.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 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.