fx2lafw: fix device product string check

Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
This commit is contained in:
Vlad Ivanov 2016-11-13 14:22:27 +03:00 committed by Uwe Hermann
parent 7087a8b0fa
commit fef90b4101
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
des.idProduct == supported_fx2[j].pid &&
(!supported_fx2[j].usb_manufacturer ||
!strcmp(manufacturer, supported_fx2[j].usb_manufacturer)) &&
(!supported_fx2[j].usb_manufacturer ||
(!supported_fx2[j].usb_product ||
!strcmp(product, supported_fx2[j].usb_product))) {
prof = &supported_fx2[j];
break;