[PATCH 48/90] staging: comedi: cb_pcimdas: cleanup "find pci device" code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables to make the tests more concise. Reorder the tests to make the for() loop checking for a matching boardtype quicker. Use ARRAY_SIZE() to determine the number of boards instead of the hard-coded '1'. Drop the dev_dbg for a match. It's just add noise. Reword the

[PATCH 48/90] staging: comedi: cb_pcimdas: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables to make the tests more concise. Reorder the tests to make the for() loop checking for a matching boardtype quicker. Use ARRAY_SIZE() to determine the number of boards instead of the hard-coded '1'. Drop the dev_dbg for a match. It's just add noise. Reword the