mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Fix a commented out assertion
This commit is contained in:
@@ -836,7 +836,7 @@ static void sam_disablewaitints(struct sam_dev_s *priv,
|
|||||||
* operation.
|
* operation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
flags = irqsave();
|
flags = irqsave();
|
||||||
priv->waitevents = 0;
|
priv->waitevents = 0;
|
||||||
priv->wkupevent = wkupevent;
|
priv->wkupevent = wkupevent;
|
||||||
priv->waitmask = 0;
|
priv->waitmask = 0;
|
||||||
@@ -1267,9 +1267,7 @@ static void sam_eventtimeout(int argc, uint32_t arg)
|
|||||||
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
|
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
|
||||||
|
|
||||||
DEBUGASSERT(argc == 1 && priv != NULL);
|
DEBUGASSERT(argc == 1 && priv != NULL);
|
||||||
|
DEBUGASSERT((priv->waitevents & SDIOWAIT_TIMEOUT) == 0);
|
||||||
/* This can, apparently, happen under certain race conditions */
|
|
||||||
/* DEBUGASSERT((priv->waitevents & SDIOWAIT_TIMEOUT) != 0); */
|
|
||||||
|
|
||||||
/* Is a data transfer complete event expected? */
|
/* Is a data transfer complete event expected? */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user