summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2018-01-09 12:40:39 -0500
committerSolomon Peachy <pizza@shaftnet.org>2018-01-09 12:42:00 -0500
commitf4f9956164475278f6f818f84a00b7e2e991816f (patch)
treec3e41f32b46a2e604dcbce6c96f5a0378c914146
parent201441e3ee23db8794c4786352035aa48519f7e8 (diff)
downloadselphy_print-f4f9956164475278f6f818f84a00b7e2e991816f.tar.gz
selphy_print-f4f9956164475278f6f818f84a00b7e2e991816f.tar.bz2
selphy_print-f4f9956164475278f6f818f84a00b7e2e991816f.zip
s2145: Don't bother looing up device subtype.
-rw-r--r--backend_shinkos2145.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/backend_shinkos2145.c b/backend_shinkos2145.c
index 3136237..ee7f6b6 100644
--- a/backend_shinkos2145.c
+++ b/backend_shinkos2145.c
@@ -97,7 +97,6 @@ struct shinkos2145_ctx {
struct libusb_device_handle *dev;
uint8_t endp_up;
uint8_t endp_down;
- int type;
uint8_t jobid;
@@ -1400,19 +1399,11 @@ static void shinkos2145_attach(void *vctx, struct libusb_device_handle *dev,
uint8_t endp_up, uint8_t endp_down, uint8_t jobid)
{
struct shinkos2145_ctx *ctx = vctx;
- struct libusb_device *device;
- struct libusb_device_descriptor desc;
ctx->dev = dev;
ctx->endp_up = endp_up;
ctx->endp_down = endp_down;
- device = libusb_get_device(dev);
- libusb_get_device_descriptor(device, &desc);
-
- ctx->type = lookup_printer_type(&shinkos2145_backend,
- desc.idVendor, desc.idProduct);
-
/* Ensure jobid is sane */
ctx->jobid = (jobid & 0x7f);
if (!ctx->jobid)