Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330882
b: refs/heads/master
c: f367cc1
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Aug 15, 2012
1 parent e6feef1 commit 789af87
Show file tree
Hide file tree
Showing 2 changed files with 7 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: a7bd775628006f7da1b94d7a5def6746f55f2321
refs/heads/master: f367cc1efebdfacfca083e55fdeafa0163054995
10 changes: 6 additions & 4 deletions trunk/drivers/media/usb/stk1160/stk1160-v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ static bool stk1160_set_alternate(struct stk1160 *dev)

static int stk1160_start_streaming(struct stk1160 *dev)
{
int i, rc;
bool new_pkt_size;
int rc = 0;
int i;

/* Check device presence */
if (!dev->udev)
Expand All @@ -183,7 +184,7 @@ static int stk1160_start_streaming(struct stk1160 *dev)
if (!dev->isoc_ctl.num_bufs || new_pkt_size) {
rc = stk1160_alloc_isoc(dev);
if (rc < 0)
return rc;
goto out_unlock;
}

/* submit urbs and enables IRQ */
Expand All @@ -192,7 +193,7 @@ static int stk1160_start_streaming(struct stk1160 *dev)
if (rc) {
stk1160_err("cannot submit urb[%d] (%d)\n", i, rc);
stk1160_uninit_isoc(dev);
return rc;
goto out_unlock;
}
}

Expand All @@ -205,9 +206,10 @@ static int stk1160_start_streaming(struct stk1160 *dev)

stk1160_dbg("streaming started\n");

out_unlock:
mutex_unlock(&dev->v4l_lock);

return 0;
return rc;
}

/* Must be called with v4l_lock hold */
Expand Down

0 comments on commit 789af87

Please sign in to comment.