From 7f21c27b7a9289e1f73fc7dc16ad41c521dd37cc 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/scubapro_g2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scubapro_g2.c b/src/scubapro_g2.c index 31fee20..8ce6764 100644 --- a/src/scubapro_g2.c +++ b/src/scubapro_g2.c @@ -34,7 +34,6 @@ typedef struct scubapro_g2_device_t { dc_device_t base; dc_usbhid_t *usbhid; - unsigned int address; unsigned int timestamp; unsigned int devtime; dc_ticks_t systime; @@ -141,7 +140,6 @@ scubapro_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;