We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c1b19 commit b513d30Copy full SHA for b513d30
drivers/ufs/core/ufshcd.c
@@ -3057,7 +3057,7 @@ bool ufshcd_cmd_inflight(struct scsi_cmnd *cmd)
3057
*/
3058
static int ufshcd_clear_cmd(struct ufs_hba *hba, u32 task_tag)
3059
{
3060
- u32 mask = 1U << task_tag;
+ u32 mask;
3061
unsigned long flags;
3062
int err;
3063
@@ -3075,6 +3075,8 @@ static int ufshcd_clear_cmd(struct ufs_hba *hba, u32 task_tag)
3075
return 0;
3076
}
3077
3078
+ mask = 1U << task_tag;
3079
+
3080
/* clear outstanding transaction before retry */
3081
spin_lock_irqsave(hba->host->host_lock, flags);
3082
ufshcd_utrl_clear(hba, mask);
0 commit comments