diff options
author | Steven Toth <stoth@kernellabs.com> | 2010-07-31 14:55:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 05:55:00 -0400 |
commit | 7c1618227e6932fcd92597507ee63c01da73e623 (patch) | |
tree | a05c3d9dfc40c71d005ff9071a828a1b45a33ed6 /drivers/media/video/saa7164/saa7164-encoder.c | |
parent | cfbaf33733b99d214d5616dcb48a690630c19d65 (diff) |
[media] saa7164: code cleanup
Removed some previous debugging code, whitespace cleanup and
spurious comments.
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164-encoder.c')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-encoder.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/media/video/saa7164/saa7164-encoder.c b/drivers/media/video/saa7164/saa7164-encoder.c index b904c61f8f81..08b62e41c466 100644 --- a/drivers/media/video/saa7164/saa7164-encoder.c +++ b/drivers/media/video/saa7164/saa7164-encoder.c | |||
@@ -1008,7 +1008,6 @@ struct saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port) | |||
1008 | struct saa7164_user_buffer *buf = 0; | 1008 | struct saa7164_user_buffer *buf = 0; |
1009 | struct saa7164_dev *dev = port->dev; | 1009 | struct saa7164_dev *dev = port->dev; |
1010 | u32 crc; | 1010 | u32 crc; |
1011 | u32 *d; | ||
1012 | 1011 | ||
1013 | mutex_lock(&port->dmaqueue_lock); | 1012 | mutex_lock(&port->dmaqueue_lock); |
1014 | if (!list_empty(&port->list_buf_used.list)) { | 1013 | if (!list_empty(&port->list_buf_used.list)) { |
@@ -1021,13 +1020,6 @@ struct saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port) | |||
1021 | buf, buf->crc, crc); | 1020 | buf, buf->crc, crc); |
1022 | } | 1021 | } |
1023 | 1022 | ||
1024 | d = (u32 *)buf->data; | ||
1025 | |||
1026 | if ((*d & 0xffffff) > (port->read_counter + 0x2000)) | ||
1027 | printk(KERN_ERR "%s() *d 0x%x port %p\n", __func__, *d, port); | ||
1028 | |||
1029 | port->read_counter = *d; | ||
1030 | |||
1031 | } | 1023 | } |
1032 | mutex_unlock(&port->dmaqueue_lock); | 1024 | mutex_unlock(&port->dmaqueue_lock); |
1033 | 1025 | ||