diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2011-06-20 10:56:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:34 -0400 |
commit | 3f66f0ed319505555f45ceac04775b23f9279ee6 (patch) | |
tree | 27796db307bf941b8297b639b4cb2b9a48ffc689 /drivers/media/video/v4l2-event.c | |
parent | e969084030b03f4997d63b3f718ba814290e0705 (diff) |
[media] v4l2-ctrls/v4l2-events: small coding style cleanups
Thanks to Laurent Pinchart <laurent.pinchart@ideasonboard.com>.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-event.c')
-rw-r--r-- | drivers/media/video/v4l2-event.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/v4l2-event.c b/drivers/media/video/v4l2-event.c index b1c19fc2f08c..53b190cf225e 100644 --- a/drivers/media/video/v4l2-event.c +++ b/drivers/media/video/v4l2-event.c | |||
@@ -100,10 +100,9 @@ static struct v4l2_subscribed_event *v4l2_event_subscribed( | |||
100 | 100 | ||
101 | assert_spin_locked(&fh->vdev->fh_lock); | 101 | assert_spin_locked(&fh->vdev->fh_lock); |
102 | 102 | ||
103 | list_for_each_entry(sev, &fh->subscribed, list) { | 103 | list_for_each_entry(sev, &fh->subscribed, list) |
104 | if (sev->type == type && sev->id == id) | 104 | if (sev->type == type && sev->id == id) |
105 | return sev; | 105 | return sev; |
106 | } | ||
107 | 106 | ||
108 | return NULL; | 107 | return NULL; |
109 | } | 108 | } |
@@ -169,9 +168,8 @@ void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev) | |||
169 | 168 | ||
170 | spin_lock_irqsave(&vdev->fh_lock, flags); | 169 | spin_lock_irqsave(&vdev->fh_lock, flags); |
171 | 170 | ||
172 | list_for_each_entry(fh, &vdev->fh_list, list) { | 171 | list_for_each_entry(fh, &vdev->fh_list, list) |
173 | __v4l2_event_queue_fh(fh, ev, ×tamp); | 172 | __v4l2_event_queue_fh(fh, ev, ×tamp); |
174 | } | ||
175 | 173 | ||
176 | spin_unlock_irqrestore(&vdev->fh_lock, flags); | 174 | spin_unlock_irqrestore(&vdev->fh_lock, flags); |
177 | } | 175 | } |