mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd: Fix error code on failure at usb_init.
* scd/ccid-driver.c (ccid_dev_scan): Return GPG_ERR_ENODEV. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
5c33649782
commit
8defb21d34
@ -1306,7 +1306,7 @@ ccid_dev_scan (int *idx_max_p, struct ccid_dev_table **t_p)
|
|||||||
if ((rc = libusb_init (NULL)))
|
if ((rc = libusb_init (NULL)))
|
||||||
{
|
{
|
||||||
DEBUGOUT_1 ("usb_init failed: %s.\n", libusb_error_name (rc));
|
DEBUGOUT_1 ("usb_init failed: %s.\n", libusb_error_name (rc));
|
||||||
return gpg_error (GPG_ERR_NOT_FOUND);
|
return gpg_error (GPG_ERR_ENODEV);
|
||||||
}
|
}
|
||||||
initialized_usb = 1;
|
initialized_usb = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user