![]() | |||||||||||
Messages in this thread |
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
> switch (index) {
> case 0: return 0x1f0;
> case 1: return 0x170;
> +
> + if(pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) == NULL) {
> + case 2: return 0x1e8;
> + case 3: return 0x168;
> + case 4: return 0x1e0;
> + case 5: return 0x160;
> + }
> +
> default:
> return 0;
> }
I don't think that code will have the intended effect, unless your
GCC has some funny ideas about switch statements...
--
Adam Sampson <azz@us-lot.org> <http://offog.org/>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| ||||||||||
| Last update: 2005-03-22 14:09 [from the cache] ©2003-2008 | |||||||||||