[PATCH 15/30] staging: comedi: cb_pcidio: cleanup the "find pci device" code

2012-07-11 Thread H Hartley Sweeten
Cleanup the "find pci device" code to follow the format of the other comedi pci drivers. Create local variables for the bus and slot options to clarify the code. Reoder the tests so that if a bus/slot is requested the loop checking against the boardinfo is not performed. Refactor the code to

[PATCH 15/30] staging: comedi: cb_pcidio: cleanup the find pci device code

2012-07-11 Thread H Hartley Sweeten
Cleanup the find pci device code to follow the format of the other comedi pci drivers. Create local variables for the bus and slot options to clarify the code. Reoder the tests so that if a bus/slot is requested the loop checking against the boardinfo is not performed. Refactor the code to remove