Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115595
b: refs/heads/master
c: 081d868
h: refs/heads/master
i:
  115593: 8a9106c
  115591: 0336321
v: v3
  • Loading branch information
David Ellingsworth authored and Mauro Carvalho Chehab committed Oct 17, 2008
1 parent 7b4d2d2 commit ec856ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 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: 962d699e5d12952c43d7316bc72a527a8aa134b7
refs/heads/master: 081d868faeb7acdd655c28607f84e797240bd035
9 changes: 1 addition & 8 deletions trunk/drivers/media/video/stk-webcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/kref.h>

#include <linux/usb.h>
#include <linux/mm.h>
Expand Down Expand Up @@ -714,9 +713,6 @@ static ssize_t v4l_stk_read(struct file *fp, char __user *buf,
struct stk_sio_buffer *sbuf;
struct stk_camera *dev = fp->private_data;

if (dev == NULL)
return -EIO;

if (!is_present(dev))
return -EIO;
if (dev->owner && dev->owner != fp)
Expand Down Expand Up @@ -773,9 +769,6 @@ static unsigned int v4l_stk_poll(struct file *fp, poll_table *wait)
{
struct stk_camera *dev = fp->private_data;

if (dev == NULL)
return -ENODEV;

poll_wait(fp, &dev->wait_frame, wait);

if (!is_present(dev))
Expand Down Expand Up @@ -1436,7 +1429,7 @@ static void stk_camera_disconnect(struct usb_interface *interface)
wake_up_interruptible(&dev->wait_frame);
stk_remove_sysfs_files(&dev->vdev);

STK_INFO("Syntek USB2.0 Camera release resources"
STK_INFO("Syntek USB2.0 Camera release resources "
"video device /dev/video%d\n", dev->vdev.minor);

video_unregister_device(&dev->vdev);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/video/stk-webcam.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ struct stk_camera {

#define vdev_to_camera(d) container_of(d, struct stk_camera, vdev)

void stk_camera_delete(struct kref *);
int stk_camera_write_reg(struct stk_camera *, u16, u8);
int stk_camera_read_reg(struct stk_camera *, u16, int *);

Expand Down

0 comments on commit ec856ad

Please sign in to comment.