summaryrefslogtreecommitdiff
path: root/drivers/media/video/videobuf-vmalloc.c
diff options
context:
space:
mode:
authorChris Pascoe <c.pascoe@itee.uq.edu.au>2007-11-19 12:29:59 (GMT)
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 21:02:27 (GMT)
commit0a196b6fa9b42a2bb49733b37565aaaa97ffb07f (patch)
treeaa968a19dd739ecd17bf1a4fe7dac8d603c6ec55 /drivers/media/video/videobuf-vmalloc.c
parenta44f1c43dfa98e2eb763968890157bfaf9001add (diff)
downloadlinux-fsl-qoriq-0a196b6fa9b42a2bb49733b37565aaaa97ffb07f.tar.xz
V4L/DVB (6642): xc2028: don't duplicate max_len in priv
There is no need to duplicate the max_len field from the ctrl structure in the private data. If we use it directly from priv->ctrl, we can memcpy the structure (apart from strings) to reduce maintenance as it grows. Enforce a minimum max_len length of 8 data bytes (+ 1 address byte) as seems to be required by the tuner. Also, use kstrdup instead of open coding the string duplication. Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/videobuf-vmalloc.c')
0 files changed, 0 insertions, 0 deletions