From f8eb329a6504e5b1edbe970b8640df3efdaaadf7 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 12 Jun 2019 13:45:33 +0200 Subject: [PATCH] fixup! Simplify Synaptics driver ??? Remove set but not used variable This discards the return value from bmkt_sensor_handle_response, should there be some sort of error handling there (e.g. printing a warning)? --- libfprint/drivers/synaptics/usb_transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfprint/drivers/synaptics/usb_transport.c b/libfprint/drivers/synaptics/usb_transport.c index 5f62b80..0397b77 100644 --- a/libfprint/drivers/synaptics/usb_transport.c +++ b/libfprint/drivers/synaptics/usb_transport.c @@ -161,7 +161,6 @@ int usb_close(bmkt_usb_transport_t *usb_xport) void usb_in_cb(struct libusb_transfer *transfer) { - int ret; uint8_t *resp_buf; int resp_len; bmkt_msg_resp_t msg_resp; @@ -174,7 +173,7 @@ void usb_in_cb(struct libusb_transfer *transfer) resp_buf = transfer->buffer; resp_len = transfer->actual_length; - ret = bmkt_sensor_handle_response(usb_xport->sensor, resp_buf, resp_len, &msg_resp); + bmkt_sensor_handle_response(usb_xport->sensor, resp_buf, resp_len, &msg_resp); libusb_free_transfer(transfer); bmkt_op_next_state(usb_xport->sensor);