]> git.baikalelectronics.ru Git - kernel.git/commit
[media] saa7134: use correct array offset
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Jan 2012 05:24:00 +0000 (02:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 19:19:46 +0000 (17:19 -0200)
commitaa845ba8c0b71fa64f589d32422d582000bd815e
treec146839b367905d27a3d1bc9758bf2139509e66b
parent9433f5f1d5a719059706b72a1ff7fda267e949c2
[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>
drivers/media/video/saa7134/saa7134-tvaudio.c