usb: misc: usbtest: delete useless memset for urbs array
authorPeter Chen <peter.chen@freescale.com>
Tue, 1 Sep 2015 01:47:59 +0000 (09:47 +0800)
committerFelipe Balbi <balbi@ti.com>
Sun, 27 Sep 2015 15:54:31 +0000 (10:54 -0500)
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>
drivers/usb/misc/usbtest.c

index 8f294d716369d03c75bc578d5ebc02efb39fd3f6..819b4b1f327b3a982c8d97cc4ccd3620186f4e9a 100644 (file)
@@ -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",