Re: [PATCH] v4l2-event: v4l2_event_queue: do nothing if vdev == NULL

2015-06-25 Thread Sakari Ailus
Hi Hans, On Tue, Jun 23, 2015 at 11:20:23AM +0200, Hans Verkuil wrote: 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. Do you have an example of when this would be

Re: [PATCH] v4l2-event: v4l2_event_queue: do nothing if vdev == NULL

2015-06-25 Thread Lars-Peter Clausen
On 06/25/2015 11:12 AM, Sakari Ailus wrote: Hi Hans, On Tue, Jun 23, 2015 at 11:20:23AM +0200, Hans Verkuil wrote: 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. Do

Re: [PATCH] v4l2-event: v4l2_event_queue: do nothing if vdev == NULL

2015-06-25 Thread Sakari Ailus
Hi Lars-Peter, On Thu, Jun 25, 2015 at 11:22:02AM +0200, Lars-Peter Clausen wrote: On 06/25/2015 11:12 AM, Sakari Ailus wrote: Hi Hans, On Tue, Jun 23, 2015 at 11:20:23AM +0200, Hans Verkuil wrote: If the vdev pointer == NULL, then just return. This makes it easier for subdev drivers to

[PATCH] v4l2-event: v4l2_event_queue: do nothing if vdev == NULL

2015-06-23 Thread Hans Verkuil
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.verk...@cisco.com diff --git a/drivers/media/v4l2-core/v4l2-event.c