@@ -1650,14 +1650,10 @@ static const struct ttusbdecfe_config fe_config = {
static int ttusb_dec_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
- struct usb_device *udev;
struct ttusb_dec *dec;
int result;
dprintk("%s\n", __func__);
-
- udev = interface_to_usbdev(intf);
-
dec = kzalloc(sizeof(*dec), GFP_KERNEL);
if (!dec)
return -ENOMEM;
@@ -1678,7 +1674,7 @@ static int ttusb_dec_probe(struct usb_interface *intf,
break;
}
- dec->udev = udev;
+ dec->udev = interface_to_usbdev(intf);
result = ttusb_dec_init_usb(dec);
if (result)