From: H Hartley Sweeten Date: Thu, 19 Jul 2012 01:46:27 +0000 (-0700) Subject: staging: comedi: cb_pcimdas: cleanup "find pci device" code X-Git-Tag: v3.6-rc1~100^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=366d6245fb1b643bbbe8dfbc4d63b78c7c44746a;p=pandora-kernel.git 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed