[media] saa7164: make buffer smaller
authorDan Carpenter <error27@gmail.com>
Tue, 2 Nov 2010 03:22:23 +0000 (00:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:39 +0000 (08:16 -0200)
commit0e72cc8b8d48ba05e705f432fb99aaa0ea6737c6
tree466279b5e4095bc95e3df1558ab3484601ee6504
parent76e4a9a7164263d8ffe816920f84a91e7dfee444
[media] saa7164: make buffer smaller

This isn't a runtime bug, it's just to make static checkers happy.

In vidioc_querycap() we copy a saa7164_dev ->name driver array into a
v4l2_capability -> driver array.  The ->driver array is only 16 chars
long so ->name also can't be more than 16 characters.

The ->name gets set in v4l2_capability() and it always is less than 16
characters so we can easily make the buffer smaller.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7164/saa7164-core.c
drivers/media/video/saa7164/saa7164.h