Skip to content

Commit

Permalink
Staging: lirc: remove unneeded variable
Browse files Browse the repository at this point in the history
We never use control_req so I removed it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 4fd09f9 commit f22f99e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/lirc/lirc_imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ static int send_packet(struct imon_context *context)
unsigned int pipe;
int interval = 0;
int retval = 0;
struct usb_ctrlrequest *control_req = NULL;

/* Check if we need to use control or interrupt urb */
pipe = usb_sndintpipe(context->usbdev,
Expand Down Expand Up @@ -355,8 +354,6 @@ static int send_packet(struct imon_context *context)
err("%s: packet tx failed (%d)", __func__, retval);
}

kfree(control_req);

return retval;
}

Expand Down

0 comments on commit f22f99e

Please sign in to comment.