From: Johan Hovold Date: Thu, 1 Jun 2017 07:46:00 +0000 (-0300) Subject: [media] mceusb: drop redundant urb reinitialisation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb3562c81e98e52f6acca2cd7ee36532634ec38e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] mceusb: drop redundant urb reinitialisation Drop a since commit e1159cb35712 ("[media] mceusb: remove pointless mce_flush_rx_buffer function") redundant reinitialisation of two urb fields immediately after they have been initialised. Signed-off-by: Johan Hovold Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 04d6cd1818fb..eb130694bbb8 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c @@ -789,9 +789,6 @@ static void mce_request_packet(struct mceusb_dev *ir, unsigned char *data, dev_dbg(dev, "send request called (size=%#x)", size); - async_urb->transfer_buffer_length = size; - async_urb->dev = ir->usbdev; - res = usb_submit_urb(async_urb, GFP_ATOMIC); if (res) { dev_err(dev, "send request FAILED! (res=%d)", res);