From: Dan Carpenter Date: Tue, 10 Aug 2010 06:11:20 +0000 (+0200) Subject: Staging: lirc: remove unneeded variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f22f99e101c078101db200f329c1ebdcf59e0da9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: lirc: remove unneeded variable We never use control_req so I removed it. Signed-off-by: Dan Carpenter Acked-by: Jarod Wilson Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lirc/lirc_imon.c b/drivers/staging/lirc/lirc_imon.c index 66493253042e..cb5699c5b885 100644 --- a/drivers/staging/lirc/lirc_imon.c +++ b/drivers/staging/lirc/lirc_imon.c @@ -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, @@ -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; }