Skip to content

Commit d3fd0fd

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: core: Use hba->reserved_slot
Use hba->reserved_slot instead of open-coding it. This patch prepares for changing the value of hba->reserved_slot. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20251031204029.2883185-21-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 45e636e commit d3fd0fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/ufs/core/ufs-mcq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ int ufshcd_mcq_sq_cleanup(struct ufs_hba *hba, int task_tag)
544544
if (hba->quirks & UFSHCD_QUIRK_MCQ_BROKEN_RTC)
545545
return -ETIMEDOUT;
546546

547-
if (task_tag != hba->nutrs - UFSHCD_NUM_RESERVED) {
547+
if (task_tag != hba->reserved_slot) {
548548
if (!cmd)
549549
return -EINVAL;
550550
hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd));

0 commit comments

Comments
 (0)