Skip to content

Commit

Permalink
[media] mceusb: drop redundant urb reinitialisation
Browse files Browse the repository at this point in the history
Drop a since commit e1159cb ("[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 <johan@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Johan Hovold authored and Mauro Carvalho Chehab committed Jun 7, 2017
1 parent 2d5a6ce commit fb3562c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/rc/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fb3562c

Please sign in to comment.