diff mbox series

scsi: ufs: Remove a ufshcd_add_command_trace() call

Message ID 20230531224050.25554-1-bvanassche@acm.org
State New
Headers show
Series scsi: ufs: Remove a ufshcd_add_command_trace() call | expand

Commit Message

Bart Van Assche May 31, 2023, 10:40 p.m. UTC
ufshcd_add_command_trace() traces SCSI commands. Remove a
ufshcd_add_command_trace() call from a code path that is not related to
SCSI commands.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/ufs/core/ufshcd.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bean Huo June 7, 2023, 8:55 p.m. UTC | #1
On 01.06.23 12:40 AM, Bart Van Assche wrote:
> ufshcd_add_command_trace() traces SCSI commands. Remove a
> ufshcd_add_command_trace() call from a code path that is not related to
> SCSI commands.
>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
> ---
>   drivers/ufs/core/ufshcd.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 0856f01b761d..1f7a4ec211ff 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -5400,7 +5400,6 @@ void ufshcd_compl_one_cqe(struct ufs_hba *hba, int task_tag,
>   		   lrbp->command_type == UTP_CMD_TYPE_UFS_STORAGE) {
>   		if (hba->dev_cmd.complete) {
>   			hba->dev_cmd.cqe = cqe;
> -			ufshcd_add_command_trace(hba, task_tag, UFS_DEV_COMP);
>   			complete(hba->dev_cmd.complete);
>   			ufshcd_clk_scaling_update_busy(hba);
>   		}

The tracepoint entry here is of no use, it's never executed, it just 
returns.

Reviewed-by: Bean Huo <beanhuo@micron.com>
Martin K. Petersen June 8, 2023, 1:05 a.m. UTC | #2
Bart,

> ufshcd_add_command_trace() traces SCSI commands. Remove a
> ufshcd_add_command_trace() call from a code path that is not related to
> SCSI commands.

Applied to 6.5/scsi-staging, thanks!
diff mbox series

Patch

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 0856f01b761d..1f7a4ec211ff 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -5400,7 +5400,6 @@  void ufshcd_compl_one_cqe(struct ufs_hba *hba, int task_tag,
 		   lrbp->command_type == UTP_CMD_TYPE_UFS_STORAGE) {
 		if (hba->dev_cmd.complete) {
 			hba->dev_cmd.cqe = cqe;
-			ufshcd_add_command_trace(hba, task_tag, UFS_DEV_COMP);
 			complete(hba->dev_cmd.complete);
 			ufshcd_clk_scaling_update_busy(hba);
 		}