]> git.zerfleddert.de Git - usb-driver/commitdiff
ignore bus-id on XILINX_USB_DEV setting missing a device-id
authorMichael Gernoth <michael@gernoth.net>
Wed, 29 Aug 2007 08:37:29 +0000 (10:37 +0200)
committerMichael Gernoth <michael@gernoth.net>
Wed, 29 Aug 2007 08:37:29 +0000 (10:37 +0200)
usb-driver.c

index 05ba48a5424686995f1997b68c89e0650e4fdc64..929c1019484581a25a1ae33986583585f936ff39 100644 (file)
@@ -500,6 +500,7 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
                                                } else {
                                                        devnum = strtol(devstr, &remainder, 10);
                                                        if (devstr == remainder) {
                                                } else {
                                                        devnum = strtol(devstr, &remainder, 10);
                                                        if (devstr == remainder) {
+                                                               busnum = -1;
                                                                devnum = -1;
                                                        } else {
                                                                fprintf(stderr,"Using XILINX platform cable USB at %03d:%03d\n",
                                                                devnum = -1;
                                                        } else {
                                                                fprintf(stderr,"Using XILINX platform cable USB at %03d:%03d\n",
Impressum, Datenschutz