summaryrefslogtreecommitdiff
path: root/nuttx/audio
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-28 12:45:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-28 12:45:22 -0600
commitf51eff41cbef57f7983d836a1155c160989cca9e (patch)
tree4e98a01538be3340ee7780e30448e78606087e6a /nuttx/audio
parent6a53bac4e3d6481d24f44912d91492cb6c6c8584 (diff)
downloadnuttx-f51eff41cbef57f7983d836a1155c160989cca9e.tar.gz
nuttx-f51eff41cbef57f7983d836a1155c160989cca9e.tar.bz2
nuttx-f51eff41cbef57f7983d836a1155c160989cca9e.zip
PCM decoder: Fix a logic error in a DEBUG assertion
Diffstat (limited to 'nuttx/audio')
-rw-r--r--nuttx/audio/pcm_decode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nuttx/audio/pcm_decode.c b/nuttx/audio/pcm_decode.c
index b3ca6c525..63477451a 100644
--- a/nuttx/audio/pcm_decode.c
+++ b/nuttx/audio/pcm_decode.c
@@ -1284,8 +1284,7 @@ static void pcm_callback(FAR void *arg, uint16_t reason,
{
FAR struct pcm_decode_s *priv = (FAR struct pcm_decode_s *)arg;
-
- DEBUGASSERT(priv && apb && priv->export.upper);
+ DEBUGASSERT(priv && priv->export.upper);
/* The buffer belongs to to an upper level. Just forward the event to
* the next level up.