Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330606
b: refs/heads/master
c: 823eeba
h: refs/heads/master
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 4, 2012
1 parent a8e2096 commit 258b23f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: d496eb8ae49e4fbaae43ac2115db0efe20d37556
refs/heads/master: 823eebac89f7adef3fb75e2a68e9e88be9b4afbe
10 changes: 4 additions & 6 deletions trunk/drivers/media/dvb/dvb-usb/dvb_usb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ int dvb_usbv2_probe(struct usb_interface *intf,

if (d->intf->cur_altsetting->desc.bInterfaceNumber !=
d->props.bInterfaceNumber) {
ret = 0;
ret = -ENODEV;
goto err_kfree;
}

Expand All @@ -419,7 +419,7 @@ EXPORT_SYMBOL(dvb_usbv2_probe);
void dvb_usbv2_disconnect(struct usb_interface *intf)
{
struct dvb_usb_device *d = usb_get_intfdata(intf);
const char *name = "generic DVB-USB module";
const char *name;

pr_debug("%s: pid=%d work_pid=%d\n", __func__, current->pid,
d->work_pid);
Expand All @@ -428,10 +428,8 @@ void dvb_usbv2_disconnect(struct usb_interface *intf)
if (d->work_pid != current->pid)
cancel_work_sync(&d->probe_work);

if (d) {
name = d->name;
dvb_usbv2_exit(d);
}
name = d->name;
dvb_usbv2_exit(d);

pr_info("%s: '%s' successfully deinitialized and disconnected\n",
KBUILD_MODNAME, name);
Expand Down

0 comments on commit 258b23f

Please sign in to comment.