Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138027
b: refs/heads/master
c: 428c8d1
h: refs/heads/master
i:
  138025: 4363192
  138023: da1af3f
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent d49196b commit 901f13b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f985c7006756cb7da452815d4bf040c02decd044
refs/heads/master: 428c8d19167c4597adf4d164262c68befafde9bf
7 changes: 3 additions & 4 deletions trunk/drivers/media/video/v4l2-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,11 @@ int video_register_device_index(struct video_device *vdev, int type, int nr,

/* A minor value of -1 marks this video device as never
having been registered */
if (vdev)
vdev->minor = -1;
vdev->minor = -1;

/* the release callback MUST be present */
WARN_ON(!vdev || !vdev->release);
if (!vdev || !vdev->release)
WARN_ON(!vdev->release);
if (!vdev->release)
return -EINVAL;

/* Part 1: check device type */
Expand Down

0 comments on commit 901f13b

Please sign in to comment.