V4L/DVB: V4L: Events: Replace bad WARN_ON() with assert_spin_locked()
authorSakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Mon, 3 May 2010 15:42:46 +0000 (12:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:23 +0000 (12:58 -0300)
commitf3cd385a9c95e1ea90e886448ab1e83ee2fc7e51
tree2d6d467d3aa5028de38aa82663a6acc9a4adb3b5
parent5a11b6fe5d5ff146d951bc237c0e3f0330711baa
V4L/DVB: V4L: Events: Replace bad WARN_ON() with assert_spin_locked()

spin_is_locked() always returns zero when spinlock debugging is
disabled on a single CPU machine. Replace WARN_ON() with
assert_spin_locked().

Thanks to Laurent Pinchart for spotting this!

Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-event.c