Staging: lirc: remove unneeded variable
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4fd09f900a
commit
f22f99e101
@ -320,7 +320,6 @@ static int send_packet(struct imon_context *context)
|
|||||||
unsigned int pipe;
|
unsigned int pipe;
|
||||||
int interval = 0;
|
int interval = 0;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
struct usb_ctrlrequest *control_req = NULL;
|
|
||||||
|
|
||||||
/* Check if we need to use control or interrupt urb */
|
/* Check if we need to use control or interrupt urb */
|
||||||
pipe = usb_sndintpipe(context->usbdev,
|
pipe = usb_sndintpipe(context->usbdev,
|
||||||
@ -355,8 +354,6 @@ static int send_packet(struct imon_context *context)
|
|||||||
err("%s: packet tx failed (%d)", __func__, retval);
|
err("%s: packet tx failed (%d)", __func__, retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
kfree(control_req);
|
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user