Commit ee4edfcd authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: #if where #ifdef should've been (saa7146)

parent aba752e2
...@@ -83,7 +83,7 @@ int saa7146_buffer_queue(struct saa7146_dev *dev, ...@@ -83,7 +83,7 @@ int saa7146_buffer_queue(struct saa7146_dev *dev,
struct saa7146_dmaqueue *q, struct saa7146_dmaqueue *q,
struct saa7146_buf *buf) struct saa7146_buf *buf)
{ {
#if DEBUG_SPINLOCKS #ifdef DEBUG_SPINLOCKS
BUG_ON(!spin_is_locked(&dev->slock)); BUG_ON(!spin_is_locked(&dev->slock));
#endif #endif
DEB_EE(("dev:%p, dmaq:%p, buf:%p\n", dev, q, buf)); DEB_EE(("dev:%p, dmaq:%p, buf:%p\n", dev, q, buf));
...@@ -109,7 +109,7 @@ void saa7146_buffer_finish(struct saa7146_dev *dev, ...@@ -109,7 +109,7 @@ void saa7146_buffer_finish(struct saa7146_dev *dev,
struct saa7146_dmaqueue *q, struct saa7146_dmaqueue *q,
int state) int state)
{ {
#if DEBUG_SPINLOCKS #ifdef DEBUG_SPINLOCKS
BUG_ON(!spin_is_locked(&dev->slock)); BUG_ON(!spin_is_locked(&dev->slock));
#endif #endif
if( NULL == q->curr ) { if( NULL == q->curr ) {
...@@ -145,7 +145,7 @@ void saa7146_buffer_next(struct saa7146_dev *dev, ...@@ -145,7 +145,7 @@ void saa7146_buffer_next(struct saa7146_dev *dev,
DEB_INT(("dev:%p, dmaq:%p, vbi:%d\n", dev, q, vbi)); DEB_INT(("dev:%p, dmaq:%p, vbi:%d\n", dev, q, vbi));
#if DEBUG_SPINLOCKS #ifdef DEBUG_SPINLOCKS
BUG_ON(!spin_is_locked(&dev->slock)); BUG_ON(!spin_is_locked(&dev->slock));
#endif #endif
if (!list_empty(&q->queue)) { if (!list_empty(&q->queue)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment