Don't check the result of usb_find_busses(). Based on patch from Julien BLACHE

<jb@jblache.org>.
merge-requests/1/head
Henning Geinitz 2005-07-03 13:35:48 +00:00
rodzic 20aff8e022
commit e9f761d067
2 zmienionych plików z 12 dodań i 5 usunięć

Wyświetl plik

@ -1,3 +1,9 @@
2005-07-02 Henning Meier-Geinitz <henning@meier-geinitz.de>
* backend/sm3600.c: Don't check the result of
usb_find_busses(). Based on patch from Julien BLACHE
<jb@jblache.org>.
2005-07-01 Ulrich Deiters <ulrich.deiters@uni-koeln.de>
* restored the actual version of the Canon-SCSI backend

Wyświetl plik

@ -357,7 +357,7 @@ sane_init (SANE_Int *version_code, SANE_Auth_Callback authCB)
{
struct usb_bus *pbus;
struct usb_device *pdev;
int iBus,rc;
int iBus;
DBG_INIT();
@ -374,11 +374,12 @@ sane_init (SANE_Int *version_code, SANE_Auth_Callback authCB)
pdevFirst=NULL;
usb_init();
rc=usb_find_busses();
if (rc)
return SANE_STATUS_GOOD;
usb_find_busses();
if (!usb_busses)
return SANE_STATUS_IO_ERROR;
usb_find_devices();
if (!usb_busses) return SANE_STATUS_IO_ERROR;
iBus=0;
DBG(DEBUG_INFO,"starting bus scan\n");
for (pbus = usb_busses; pbus; pbus = pbus->next)