[PATCH 2/2]: drivers/video: remove unnecessary pci_dev_put

2007-11-15 Thread Julia Lawall
From: Julia Lawall <[EMAIL PROTECTED]> pci_get_class implicitly does a pci_dev_put on its second argument, so pci_dev_put is only needed if there is a break out of the loop. The semantic match detecting this problem is as follows: // @@ expression dev; expression E; @@ * pci_dev_put(dev)

[PATCH 2/2]: drivers/video: remove unnecessary pci_dev_put

2007-11-15 Thread Julia Lawall
From: Julia Lawall [EMAIL PROTECTED] pci_get_class implicitly does a pci_dev_put on its second argument, so pci_dev_put is only needed if there is a break out of the loop. The semantic match detecting this problem is as follows: // smpl @@ expression dev; expression E; @@ * pci_dev_put(dev)