Showing the changes to drivers/staging/lirc/lirc_imon.c (1 of 1 file). Show all
Unified · Split
| @@ -672,8 +672,6 @@ static void imon_incoming_packet(struct imon_context *context, · 671 unmodified lines | ||
| 672 | 672 | static void usb_rx_callback(struct urb *urb) |
| 673 | 673 | { |
| 674 | 674 | struct imon_context *context; |
| 675 | − unsigned char *buf; | |
| 676 | − int len; | |
| 677 | 675 | int intfnum = 0; |
| 678 | 676 | |
| 679 | 677 | if (!urb) |
| @@ -683,9 +681,6 @@ static void usb_rx_callback(struct urb *urb) · 3 unmodified lines | ||
| 683 | 681 | if (!context) |
| 684 | 682 | return; |
| 685 | 683 | |
| 686 | − buf = urb->transfer_buffer; | |
| 687 | − len = urb->actual_length; | |
| 688 | − | |
| 689 | 684 | switch (urb->status) { |
| 690 | 685 | case -ENOENT: /* usbcore unlink successful! */ |
| 691 | 686 | return; |
| @@ -728,7 +723,6 @@ static int imon_probe(struct usb_interface *interface, · 36 unmodified lines | ||
| 728 | 723 | int ir_ep_found = 0; |
| 729 | 724 | int alloc_status = 0; |
| 730 | 725 | int vfd_proto_6p = 0; |
| 731 | − int code_length; | |
| 732 | 726 | struct imon_context *context = NULL; |
| 733 | 727 | int i; |
| 734 | 728 | u16 vendor, product; |
| @@ -749,8 +743,6 @@ static int imon_probe(struct usb_interface *interface, · 14 unmodified lines | ||
| 749 | 743 | else |
| 750 | 744 | context->display = 1; |
| 751 | 745 | |
| 752 | − code_length = BUF_CHUNK_SIZE * 8; | |
| 753 | − | |
| 754 | 746 | usbdev = usb_get_dev(interface_to_usbdev(interface)); |
| 755 | 747 | iface_desc = interface->cur_altsetting; |
| 756 | 748 | num_endpts = iface_desc->desc.bNumEndpoints; |
| @@ -856,7 +848,7 @@ static int imon_probe(struct usb_interface *interface, · 99 unmodified lines | ||
| 856 | 848 | |
| 857 | 849 | strcpy(driver->name, MOD_NAME); |
| 858 | 850 | driver->minor = -1; |
| 859 | − driver->code_length = sizeof(int) * 8; | |
| 851 | + driver->code_length = BUF_CHUNK_SIZE * 8; | |
| 860 | 852 | driver->sample_rate = 0; |
| 861 | 853 | driver->features = LIRC_CAN_REC_MODE2; |
| 862 | 854 | driver->data = context; |