usbi_alloc_device: Drop unnecessary memset 0

The memory gets calloc-ed, so there no need to clear it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Hans de Goede
2013-05-22 12:12:28 +02:00
parent 9f59875fbc
commit 1049db5db5
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -514,7 +514,6 @@ struct libusb_device *usbi_alloc_device(struct libusb_context *ctx,
dev->refcnt = 1;
dev->session_data = session_id;
dev->speed = LIBUSB_SPEED_UNKNOWN;
memset(&dev->os_priv, 0, priv_size);
if (!libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG)) {
usbi_connect_device (dev);
+1 -1
View File
@@ -1 +1 @@
#define LIBUSB_NANO 10699
#define LIBUSB_NANO 10700