pci: cleanup scan loop
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 13 Apr 2015 22:11:11 +0000 (15:11 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Aug 2015 16:03:06 +0000 (18:03 +0200)
commitc07f42ec0bfbc52f47c178a5adfc8937689095e3
tree35a906ab51b90f6297d1ce9011d420b4fe39609f
parent3fc36d76ab26c8bd669bc06ee98abffa282aca15
pci: cleanup scan loop

Do some cleanup of pci scan loop.
  * check errors first
  * don't initialize variables where not necessary
  * cuddle else (follow existing style)
  * chop off conditional after return

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/linuxapp/eal/eal_pci.c