mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 10:44:14 +08:00
usb: misc: usbtest: delete useless memset for urbs array
The element of urbs array will be initialized at below code at once. for (i = 0; i < param->sglen; i++) { urbs[i] = iso_alloc_urb(udev, pipe, desc, param->length, offset); Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
41d3c0b84d
commit
a724ddfb17
@ -1920,7 +1920,6 @@ test_iso_queue(struct usbtest_dev *dev, struct usbtest_param *param,
|
||||
init_completion(&context.done);
|
||||
spin_lock_init(&context.lock);
|
||||
|
||||
memset(urbs, 0, sizeof(urbs));
|
||||
udev = testdev_to_usbdev(dev);
|
||||
dev_info(&dev->intf->dev,
|
||||
"iso period %d %sframes, wMaxPacket %d, transactions: %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user