diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-09-01 04:47:59 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-27 18:54:31 +0300 |
commit | a724ddfb17e0519d2c2b6e09a96b1b94eff6b801 (patch) | |
tree | 91882cb114b3518ffe20b93aa34f685074941174 /drivers/usb/misc/usbtest.c | |
parent | 41d3c0b84d6e084865c429b1b6825256c0169319 (diff) | |
download | linux-a724ddfb17e0519d2c2b6e09a96b1b94eff6b801.tar.xz |
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>
Diffstat (limited to 'drivers/usb/misc/usbtest.c')
-rw-r--r-- | drivers/usb/misc/usbtest.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 8f294d716369..819b4b1f327b 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c @@ -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", |