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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2017-06-15 06:27:21 +09:00
parent df9984e123
commit 7f21c27b7a

View File

@ -34,7 +34,6 @@
typedef struct scubapro_g2_device_t { typedef struct scubapro_g2_device_t {
dc_device_t base; dc_device_t base;
dc_usbhid_t *usbhid; dc_usbhid_t *usbhid;
unsigned int address;
unsigned int timestamp; unsigned int timestamp;
unsigned int devtime; unsigned int devtime;
dc_ticks_t systime; dc_ticks_t systime;
@ -141,7 +140,6 @@ scubapro_g2_device_open(dc_device_t **out, dc_context_t *context)
// Set the default values. // Set the default values.
device->usbhid = NULL; device->usbhid = NULL;
device->address = 0;
device->timestamp = 0; device->timestamp = 0;
device->systime = (dc_ticks_t) -1; device->systime = (dc_ticks_t) -1;
device->devtime = 0; device->devtime = 0;