synaptics: Remove useless code

There is never a fall through if error is not NULL.
This commit is contained in:
Benjamin Berg 2020-10-19 16:59:07 +02:00
parent 31319d9c6f
commit 59824d2122

View file

@ -197,9 +197,8 @@ cmd_interrupt_cb (FpiUsbTransfer *transfer,
fpi_ssm_mark_failed (transfer->ssm, error);
return;
}
g_clear_pointer (&error, g_error_free);
if (transfer->buffer[0] & USB_ASYNC_MESSAGE_PENDING || error)
if (transfer->buffer[0] & USB_ASYNC_MESSAGE_PENDING)
fpi_ssm_next_state (transfer->ssm);
else
fpi_usb_transfer_submit (transfer, 1000, NULL, cmd_interrupt_cb, NULL);