Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
libztex: removed an unused struct member (ztex->valid)
  • Loading branch information
denis2342 committed Dec 9, 2012
1 parent 383b42f commit 9b1d0c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions libztex.c
Expand Up @@ -696,7 +696,6 @@ int libztex_prepare_device(struct libusb_device *dev, struct libztex_device** zt
newdev->usbbus = libusb_get_bus_number(dev);
newdev->usbaddress = libusb_get_device_address(dev);
sprintf(newdev->repr, "ZTEX %s-1", newdev->snString);
newdev->valid = true;
return 0;
}

Expand Down Expand Up @@ -777,7 +776,6 @@ int libztex_scanDevices(struct libztex_dev_list*** devs_p)

ztex->bitFileName = NULL;
ztex->numberOfFpgas = -1;
ztex->valid = false;

err = libztex_prepare_device(list[usbdevices[i]], &ztex);
if (unlikely(err != 0)) {
Expand Down
1 change: 0 additions & 1 deletion libztex.h
Expand Up @@ -47,7 +47,6 @@ struct libztex_device {
pthread_mutex_t mutex;
struct libztex_device *root;
int16_t fpgaNum;
bool valid;
struct libusb_device_descriptor descriptor;
libusb_device_handle *hndl;
unsigned char usbbus;
Expand Down

0 comments on commit 9b1d0c9

Please sign in to comment.