diff options
| author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-07-18 18:46:27 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-19 16:32:55 -0700 |
| commit | 366d6245fb1b643bbbe8dfbc4d63b78c7c44746a (patch) | |
| tree | dd38ddfad5b2f7ce7658abd222643ce3c5f56157 /lib/mpi/mpi-inline.c | |
| parent | 46a4ff0dbc7a27621983ec1157824af3fdb7f08b (diff) | |
staging: comedi: cb_pcimdas: cleanup "find pci device" code
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 dev_err when no match is found.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions
