summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-30 22:59:06 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-30 22:59:06 +0000
commit6b716abac7babcd0d6573b16c3b66e6edf2e6d0f (patch)
tree7261254b70f8e7eb0885c92a4d33142727a22cb3
parent6371e44a50049befb643a85d4b4497c95a0a040a (diff)
downloadldetect-6b716abac7babcd0d6573b16c3b66e6edf2e6d0f.tar
ldetect-6b716abac7babcd0d6573b16c3b66e6edf2e6d0f.tar.gz
ldetect-6b716abac7babcd0d6573b16c3b66e6edf2e6d0f.tar.bz2
ldetect-6b716abac7babcd0d6573b16c3b66e6edf2e6d0f.tar.xz
ldetect-6b716abac7babcd0d6573b16c3b66e6edf2e6d0f.zip
class_prog is now unused
-rw-r--r--pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pci.c b/pci.c
index b8a37fd..57b7dbe 100644
--- a/pci.c
+++ b/pci.c
@@ -55,7 +55,6 @@ extern struct pciusb_entries pci_probe(void) {
for (dev = pacc->devices; dev; dev = dev->next, r.nb++) {
struct pciusb_entry *e = &r.entries[r.nb];
- unsigned char class_prog = 0;
memset(buf, 0, CONFIG_SPACE_SIZE); // make sure not to retrieve values from previous devices
pci_setup_cache(dev, (u8*)buf, CONFIG_SPACE_SIZE);
pci_read_block(dev, 0, buf, CONFIG_SPACE_SIZE);
@@ -87,7 +86,6 @@ extern struct pciusb_entries pci_probe(void) {
e->subvendor = 0xffff;
e->subdevice = 0xffff;
}
- class_prog = pci_read_byte(dev, PCI_CLASS_PROG);
for (cap = dev->first_cap; cap; cap = cap->next) {
switch (cap->id) {