scd: Internal CCID reader cleanup.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Apr 2017 04:30:35 +0000 (13:30 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 7 Apr 2017 04:30:35 +0000 (13:30 +0900)
commitcc420d34880e2a050b39f969873974cfc35fa5c3
tree5b324d56611ebe0251e740fd61529f0472cbe597
parent3c93595d701c59cbc9b67a7fd0bcde7ee0fada1a
scd: Internal CCID reader cleanup.

* scd/ccid-reader.c (scan_usb_device): Only for scan mode, so, rename
from scan_or_find_usb_device.
(scan_devices): Likewise.  Remove support of special transport types.
(ccid_get_reader_list): Simplify.
(abort_cmd): Fix error return.
(send_escape_cmd): Fix for RESULTLEN == NULL.
(ccid_transceive_secure): Remove unnecessary var updates.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/ccid-driver.c