[media] v4l2-event: v4l2_event_queue: do nothing if vdev == NULL
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 23 Jun 2015 09:20:23 +0000 (06:20 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 12:15:27 +0000 (09:15 -0300)
commitfb8dfda980bdaf178a7addb0a4f68574e390a9d9
treef12908cce162366be501e77f88a639325f0eda99
parent675a9a9fda4e9b8634e7e93668f4a8c1311c0db4
[media] v4l2-event: v4l2_event_queue: do nothing if vdev == NULL

If the vdev pointer == NULL, then just return.

This makes it easier for subdev drivers to use this function without having to
check if the sd->devnode pointer is NULL or not.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-event.c