From 1049db5db5592a632a39b899d211dcec9b7de43e Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 22 May 2013 12:12:28 +0200 Subject: [PATCH] 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 --- libusb/core.c | 1 - libusb/version_nano.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libusb/core.c b/libusb/core.c index cc2d188..88757f8 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -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); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index ff9fd57..5f1be8c 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10699 +#define LIBUSB_NANO 10700 -- 2.7.4