@@ -5944,7 +5944,7 @@ static irqreturn_t ufshcd_sl_intr(struct ufs_hba *hba, u32 intr_status)
5944
5944
*/
5945
5945
static irqreturn_t ufshcd_intr (int irq , void * __hba )
5946
5946
{
5947
- u32 intr_status , enabled_intr_status ;
5947
+ u32 intr_status , enabled_intr_status = 0 ;
5948
5948
irqreturn_t retval = IRQ_NONE ;
5949
5949
struct ufs_hba * hba = __hba ;
5950
5950
int retries = hba -> nutrs ;
@@ -5958,7 +5958,7 @@ static irqreturn_t ufshcd_intr(int irq, void *__hba)
5958
5958
* read, make sure we handle them by checking the interrupt status
5959
5959
* again in a loop until we process all of the reqs before returning.
5960
5960
*/
5961
- do {
5961
+ while ( intr_status && retries -- ) {
5962
5962
enabled_intr_status =
5963
5963
intr_status & ufshcd_readl (hba , REG_INTERRUPT_ENABLE );
5964
5964
if (intr_status )
@@ -5967,7 +5967,7 @@ static irqreturn_t ufshcd_intr(int irq, void *__hba)
5967
5967
retval |= ufshcd_sl_intr (hba , enabled_intr_status );
5968
5968
5969
5969
intr_status = ufshcd_readl (hba , REG_INTERRUPT_STATUS );
5970
- } while ( intr_status && -- retries );
5970
+ }
5971
5971
5972
5972
if (enabled_intr_status && retval == IRQ_NONE ) {
5973
5973
dev_err (hba -> dev , "%s: Unhandled interrupt 0x%08x\n" ,
0 commit comments