aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-05 00:24:00 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-06 14:19:46 -0500
commite82db75d06ac331ae39b07f57539df3c51d19b94 (patch)
treec146839b367905d27a3d1bc9758bf2139509e66b /drivers
parent938ca36ef7914bd013acbff9f15e393fe79d71da (diff)
[media] saa7134: use correct array offset
Smatch complains that i can be one passed the end of the array if we don't hit the break statement. We should be using the "audio" here like we do in the other places. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/saa7134/saa7134-tvaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-tvaudio.c b/drivers/media/video/saa7134/saa7134-tvaudio.c
index ec1df6f6f430..b7a99bee2f98 100644
--- a/drivers/media/video/saa7134/saa7134-tvaudio.c
+++ b/drivers/media/video/saa7134/saa7134-tvaudio.c
@@ -605,7 +605,7 @@ static int tvaudio_thread(void *data)
605 if (kthread_should_stop()) 605 if (kthread_should_stop())
606 break; 606 break;
607 if (UNSET == dev->thread.mode) { 607 if (UNSET == dev->thread.mode) {
608 rx = tvaudio_getstereo(dev,&tvaudio[i]); 608 rx = tvaudio_getstereo(dev, &tvaudio[audio]);
609 mode = saa7134_tvaudio_rx2mode(rx); 609 mode = saa7134_tvaudio_rx2mode(rx);
610 } else { 610 } else {
611 mode = dev->thread.mode; 611 mode = dev->thread.mode;