aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20_int.h
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2021-12-17 21:28:14 +0000
committerBrooks Davis <brooks@FreeBSD.org>2021-12-17 21:28:14 +0000
commit8010f4ad21b6120e929bda4eed27696e63514677 (patch)
tree6cec46c2eb82ceab5d133d142cdcc23c5b1bb60d /lib/libusb/libusb20_int.h
parent0ec590d24e415dd36e38648630a0b963412ad87e (diff)
downloadsrc-8010f4ad21b6120e929bda4eed27696e63514677.tar.gz
src-8010f4ad21b6120e929bda4eed27696e63514677.zip
libusb: remove use of COMPAT_32BIT
This codepath used uint64_t's in place of pointers in structs and arrays to allow 32-bit code to use 64-bit version of ioctls. Now that we support 32-bit compat natively this is no longer needed. Reviewed by: hselasky, jrtc27 (prior version)
Diffstat (limited to 'lib/libusb/libusb20_int.h')
-rw-r--r--lib/libusb/libusb20_int.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libusb/libusb20_int.h b/lib/libusb/libusb20_int.h
index 5f54ee3717fc..16796dc1233d 100644
--- a/lib/libusb/libusb20_int.h
+++ b/lib/libusb/libusb20_int.h
@@ -33,12 +33,6 @@
#ifndef _LIBUSB20_INT_H_
#define _LIBUSB20_INT_H_
-#ifdef COMPAT_32BIT
-#define libusb20_pass_ptr(ptr) ((uint64_t)(uintptr_t)(ptr))
-#else
-#define libusb20_pass_ptr(ptr) (ptr)
-#endif
-
struct libusb20_device;
struct libusb20_backend;
struct libusb20_transfer;
@@ -159,11 +153,7 @@ struct libusb20_transfer {
/*
* Pointer to a list of buffer pointers:
*/
-#ifdef COMPAT_32BIT
- uint64_t *ppBuffer;
-#else
void **ppBuffer;
-#endif
/*
* Pointer to frame lengths, which are updated to actual length
* after the USB transfer completes: