fixed bug with checking status of PciSearchDevice in scanning of pci devices

— also style fix