scsi: ufs: core: Remove a goto label from ufshcd_uic_cmd_compl()
Return directly instead of jumping to a return statement. No functionality has been changed. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Link: https://patch.msgid.link/20251014200118.3390839-8-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
b30006b5be
commit
047f190494
@@ -5578,7 +5578,7 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status)
|
|||||||
guard(spinlock_irqsave)(hba->host->host_lock);
|
guard(spinlock_irqsave)(hba->host->host_lock);
|
||||||
cmd = hba->active_uic_cmd;
|
cmd = hba->active_uic_cmd;
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
goto unlock;
|
return retval;
|
||||||
|
|
||||||
if (ufshcd_is_auto_hibern8_error(hba, intr_status))
|
if (ufshcd_is_auto_hibern8_error(hba, intr_status))
|
||||||
hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status);
|
hba->errors |= (UFSHCD_UIC_HIBERN8_MASK & intr_status);
|
||||||
@@ -5601,7 +5601,6 @@ static irqreturn_t ufshcd_uic_cmd_compl(struct ufs_hba *hba, u32 intr_status)
|
|||||||
if (retval == IRQ_HANDLED)
|
if (retval == IRQ_HANDLED)
|
||||||
ufshcd_add_uic_command_trace(hba, cmd, UFS_CMD_COMP);
|
ufshcd_add_uic_command_trace(hba, cmd, UFS_CMD_COMP);
|
||||||
|
|
||||||
unlock:
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user