Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202019
b: refs/heads/master
c: 8871c85
h: refs/heads/master
i:
  202017: 6dc0fc9
  202015: e96450a
v: v3
  • Loading branch information
Daniel Mack authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 7ee150c commit e7478ed
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 4c61f678a468768afd45c3d9ac697f8f55aa04eb
refs/heads/master: 8871c85d86829a2739ec797c4343ebd3664895b9
16 changes: 7 additions & 9 deletions trunk/drivers/media/dvb/dvb-usb/dib0700_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,10 @@ int dib0700_rc_setup(struct dvb_usb_device *d)
return 0;

/* Set the IR mode */
i = dib0700_ctrl_wr(d, rc_setup, 3);
if (i<0) {
i = dib0700_ctrl_wr(d, rc_setup, sizeof(rc_setup));
if (i < 0) {
err("ir protocol setup failed");
return -1;
return i;
}

if (st->fw_version < 0x10200)
Expand All @@ -653,14 +653,14 @@ int dib0700_rc_setup(struct dvb_usb_device *d)
purb = usb_alloc_urb(0, GFP_KERNEL);
if (purb == NULL) {
err("rc usb alloc urb failed\n");
return -1;
return -ENOMEM;
}

purb->transfer_buffer = kzalloc(RC_MSG_SIZE_V1_20, GFP_KERNEL);
if (purb->transfer_buffer == NULL) {
err("rc kzalloc failed\n");
usb_free_urb(purb);
return -1;
return -ENOMEM;
}

purb->status = -EINPROGRESS;
Expand All @@ -669,12 +669,10 @@ int dib0700_rc_setup(struct dvb_usb_device *d)
dib0700_rc_urb_completion, d);

ret = usb_submit_urb(purb, GFP_ATOMIC);
if (ret != 0) {
if (ret)
err("rc submit urb failed\n");
return -1;
}

return 0;
return ret;
}

static int dib0700_probe(struct usb_interface *intf,
Expand Down

0 comments on commit e7478ed

Please sign in to comment.