File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,6 @@ static int rtsx_usb_get_status_with_bulk(struct rtsx_ucr *ucr, u16 *status)
286286int rtsx_usb_get_card_status (struct rtsx_ucr * ucr , u16 * status )
287287{
288288 int ret ;
289- u8 interrupt_val = 0 ;
290289 u16 * buf ;
291290
292291 if (!status )
@@ -309,20 +308,6 @@ int rtsx_usb_get_card_status(struct rtsx_ucr *ucr, u16 *status)
309308 ret = rtsx_usb_get_status_with_bulk (ucr , status );
310309 }
311310
312- rtsx_usb_read_register (ucr , CARD_INT_PEND , & interrupt_val );
313- /* Cross check presence with interrupts */
314- if (* status & XD_CD )
315- if (!(interrupt_val & XD_INT ))
316- * status &= ~XD_CD ;
317-
318- if (* status & SD_CD )
319- if (!(interrupt_val & SD_INT ))
320- * status &= ~SD_CD ;
321-
322- if (* status & MS_CD )
323- if (!(interrupt_val & MS_INT ))
324- * status &= ~MS_CD ;
325-
326311 /* usb_control_msg may return positive when success */
327312 if (ret < 0 )
328313 return ret ;
You can’t perform that action at this time.
0 commit comments