From 4ef57b24bb2046b1a848d284ea0b98ceff3e5896 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 15 Jun 2017 06:27:21 +0900 Subject: [PATCH] Scubapro G2: clean up unused field Jef Driesen correctly points out that the 'address' field is just leftover from the IrDA code, and is meaningless for the USB HID transport version of the Scubapro G2. Signed-off-by: Linus Torvalds --- src/uwatec_g2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/uwatec_g2.c b/src/uwatec_g2.c index b946eca..864ec32 100644 --- a/src/uwatec_g2.c +++ b/src/uwatec_g2.c @@ -36,7 +36,6 @@ typedef struct uwatec_g2_device_t { dc_device_t base; dc_usbhid_t *usbhid; - unsigned int address; unsigned int timestamp; unsigned int devtime; dc_ticks_t systime; @@ -144,7 +143,6 @@ uwatec_g2_device_open (dc_device_t **out, dc_context_t *context) // Set the default values. device->usbhid = NULL; - device->address = 0; device->timestamp = 0; device->systime = (dc_ticks_t) -1; device->devtime = 0;