From: Chris Pascoe Date: Mon, 19 Nov 2007 12:29:59 +0000 (-0300) Subject: V4L/DVB (6642): xc2028: don't duplicate max_len in priv X-Git-Tag: v2.6.25-rc1~1235^2~331 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a196b6fa9b42a2bb49733b37565aaaa97ffb07f;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed