]> err.no Git - linux-2.6/blobdiff - drivers/video/sis/sis_main.c
drivers/video: remove unnecessary pci_dev_put
[linux-2.6] / drivers / video / sis / sis_main.c
index 5b28fa2038fffa803bbe71d707717dfaed067136..73803624c1318cd4bb82f18a5084284d924673d3 100644 (file)
@@ -4621,9 +4621,9 @@ sisfb_find_host_bridge(struct sis_video_info *ivideo, struct pci_dev *mypdev,
 
        while((pdev = pci_get_class(PCI_CLASS_BRIDGE_HOST, pdev))) {
                temp = pdev->vendor;
-               pci_dev_put(pdev);
                if(temp == pcivendor) {
                        ret = 1;
+                       pci_dev_put(pdev);
                        break;
                }
        }