[media] v4l: async: Make it safe to unregister unregistered notifier
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 3 Jul 2013 10:49:06 +0000 (07:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 11:49:33 +0000 (08:49 -0300)
commit8e3fbfee23fffa2f50a36ef7b7d18092d0f57f6c
tree23e564a443edbcb4f32ba4fcf750b56587797a87
parent3f359a7cb1847900bc87b3498f72c1ee848942a7
[media] v4l: async: Make it safe to unregister unregistered notifier

Calling v4l2_async_notifier_unregister() on a notifier that hasn't been
registered leads to a crash. To simplify drivers, make it safe to
unregister a notifier that has not been registered.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-async.c