Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254608
b: refs/heads/master
c: e5fd0f7
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Jun 11, 2011
1 parent 92fc128 commit ca95693
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 3a918aa69daf001910640cc910ea4053ba840a6e
refs/heads/master: e5fd0f7db3c3ba127dc1c51f0a0fe31d89db27cc
10 changes: 1 addition & 9 deletions trunk/drivers/staging/lirc/lirc_imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,6 @@ static void imon_incoming_packet(struct imon_context *context,
static void usb_rx_callback(struct urb *urb)
{
struct imon_context *context;
unsigned char *buf;
int len;
int intfnum = 0;

if (!urb)
Expand All @@ -683,9 +681,6 @@ static void usb_rx_callback(struct urb *urb)
if (!context)
return;

buf = urb->transfer_buffer;
len = urb->actual_length;

switch (urb->status) {
case -ENOENT: /* usbcore unlink successful! */
return;
Expand Down Expand Up @@ -728,7 +723,6 @@ static int imon_probe(struct usb_interface *interface,
int ir_ep_found = 0;
int alloc_status = 0;
int vfd_proto_6p = 0;
int code_length;
struct imon_context *context = NULL;
int i;
u16 vendor, product;
Expand All @@ -749,8 +743,6 @@ static int imon_probe(struct usb_interface *interface,
else
context->display = 1;

code_length = BUF_CHUNK_SIZE * 8;

usbdev = usb_get_dev(interface_to_usbdev(interface));
iface_desc = interface->cur_altsetting;
num_endpts = iface_desc->desc.bNumEndpoints;
Expand Down Expand Up @@ -856,7 +848,7 @@ static int imon_probe(struct usb_interface *interface,

strcpy(driver->name, MOD_NAME);
driver->minor = -1;
driver->code_length = sizeof(int) * 8;
driver->code_length = BUF_CHUNK_SIZE * 8;
driver->sample_rate = 0;
driver->features = LIRC_CAN_REC_MODE2;
driver->data = context;
Expand Down

0 comments on commit ca95693

Please sign in to comment.