From: Trent Piepho Date: Wed, 4 Mar 2009 04:21:02 +0000 (-0300) Subject: V4L/DVB (10812): v4l2: Zero out read-only ioctls in one place X-Git-Tag: v2.6.30-rc1~621^2~357 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=337f9d205972bfe1cb7982384fd0f4caa4af001d;p=pandora-kernel.git V4L/DVB (10812): v4l2: Zero out read-only ioctls in one place If an ioctl is read-only then the driver fills in all the fields. Lots of times drivers only care about some fields so it's best if video_ioctl2 takes care of zeroing out the entire structure before handing it to the driver. This saves code in each driver to do it and driver authors often forget. The existing memset code in some of the read-only ioctl handlers can be deleted. Convert a case statement to a single if statement. Deleted a debug line from ENUMAUDOUT that was copy-and-pasted to G_AUDOUT by mistake. Signed-off-by: Trent Piepho Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed