summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-irq.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-02 16:10:23 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-02 16:10:23 +0200
commitf0cdb3f5eacee30176d1371d6fde1522c69ebb5e (patch)
tree27e946e6e3987a1913857c72172406b4c012fab3 /linux/drivers/media/video/ivtv/ivtv-irq.c
parent486b64428b6255dc6cf7aa8759648f9a9bca1dbd (diff)
downloadmediapointer-dvb-s2-f0cdb3f5eacee30176d1371d6fde1522c69ebb5e.tar.gz
mediapointer-dvb-s2-f0cdb3f5eacee30176d1371d6fde1522c69ebb5e.tar.bz2
ivtv: fix incorrect bit tests
From: Hans Verkuil <hverkuil@xs4all.nl> Found the coccinelle tool. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Thanks-to: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-irq.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-irq.c b/linux/drivers/media/video/ivtv/ivtv-irq.c
index 6dda1dd03..981171915 100644
--- a/linux/drivers/media/video/ivtv/ivtv-irq.c
+++ b/linux/drivers/media/video/ivtv/ivtv-irq.c
@@ -202,7 +202,7 @@ static int stream_enc_dma_append(struct ivtv_stream *s, u32 data[CX2341X_MBOX_MA
bytes_needed, s->name);
return -1;
}
- if (rc && !s->buffers_stolen && (s->s_flags & IVTV_F_S_APPL_IO)) {
+ if (rc && !s->buffers_stolen && test_bit(IVTV_F_S_APPL_IO, &s->s_flags)) {
IVTV_WARN("All %s stream buffers are full. Dropping data.\n", s->name);
IVTV_WARN("Cause: the application is not reading fast enough.\n");
}