]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7378): cleanup variable initialization
authorGuennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Tue, 22 Apr 2008 17:46:03 +0000 (14:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:51 +0000 (14:07 -0300)
commitfd0692301fb50235b5df101cc1a00b72c66fb7ab
treeb98c96df4282870130fcc712dd3832871fb90dc1
parent62bfed3a30c0094e446cc3c5d7b274345aa275b8
V4L/DVB (7378): cleanup variable initialization

flags used for spinlocks don't need to be initialized, except where the
compiler has no way to see, that the spin_unlock_irqrestore is only called
if the spin_lock_irqsave has been called before. Local variable
initialization doesn't have to be protected.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-queue.c
drivers/media/video/videobuf-core.c