mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-21 00:16:04 -04:00
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:
@@ -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 @@
|
||||
#define LIBUSB_NANO 10699
|
||||
#define LIBUSB_NANO 10700
|
||||
|
||||
Reference in New Issue
Block a user