From: H Hartley Sweeten Date: Wed, 11 Jul 2012 00:25:33 +0000 (-0700) Subject: staging: comedi: rtd520: cleanup the "find pci device" code X-Git-Tag: v3.6-rc1~100^2~216 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26550b32e1640020c1aea2e5ccd857b0ddd84b82;p=pandora-kernel.git staging: comedi: rtd520: cleanup the "find pci device" code Use for_each_pci_dev() instead of open-coding the for loop. Create local variables for the bus and slot options as well as the thisboard pointer in order to clarify the code. Consolidate the printk's when a supported board is not found into one dev_warn message. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed