]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s2255: don't zero struct v4l2_streamparm
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 15 Feb 2013 09:07:13 +0000 (06:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 18:40:25 +0000 (15:40 -0300)
commitaf7ede11cc19e1922957675fdbefb072a9043fd6
tree923c2d7b6d280da530d94abb837ae10214b59448
parent16733672c4f21de25d828aaeec4a988e3fbfb0df
[media] s2255: don't zero struct v4l2_streamparm

All fields after 'type' are already zeroed by the core framework.
Clearing the full struct also clears 'type', which causes a wrong
type value to be returned.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/s2255/s2255drv.c