1
linux/drivers/char/agp
Julia Lawall 91d361c279 agp: remove unnecessary pci_dev_put
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)
  ... when != dev = E
(
* pci_get_device(...,dev)
|
* pci_get_device_reverse(...,dev)
|
* pci_get_subsys(...,dev)
|
* pci_get_class(...,dev)
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
2008-02-05 14:33:33 +10:00
..
agp.h agp: add chipset flushing support to AGP interface 2008-02-05 14:33:32 +10:00
ali-agp.c x86: cpa: move flush to cpa 2008-01-30 13:34:07 +01:00
alpha-agp.c
amd64-agp.c x86 gart: rename CONFIG_IOMMU to CONFIG_GART_IOMMU 2007-10-30 00:22:22 +01:00
amd-k7-agp.c agp: remove unnecessary pci_dev_put 2008-02-05 14:33:33 +10:00
ati-agp.c agp: balance ioremap checks 2007-08-25 18:14:00 +10:00
backend.c agp: add chipset flushing support to AGP interface 2008-02-05 14:33:32 +10:00
compat_ioctl.c agp: add chipset flushing support to AGP interface 2008-02-05 14:33:32 +10:00
compat_ioctl.h agp: add chipset flushing support to AGP interface 2008-02-05 14:33:32 +10:00
efficeon-agp.c x86: Create clflush() inline, remove hardcoded wbinvd 2007-10-17 20:16:12 +02:00
frontend.c agp: remove uid comparison as security check 2008-02-05 14:33:32 +10:00
generic.c agp: add chipset flushing support to AGP interface 2008-02-05 14:33:32 +10:00
hp-agp.c convert ill defined log2() to ilog2() 2007-10-17 08:42:48 -07:00
i460-agp.c x86: cpa: move flush to cpa 2008-01-30 13:34:07 +01:00
intel-agp.c fix AGP warning 2008-02-05 14:33:32 +10:00
isoch.c
Kconfig x86 gart: rename CONFIG_IOMMU to CONFIG_GART_IOMMU 2007-10-30 00:22:22 +01:00
Makefile
nvidia-agp.c agp: balance ioremap checks 2007-08-25 18:14:00 +10:00
parisc-agp.c convert ill defined log2() to ilog2() 2007-10-17 08:42:48 -07:00
sgi-agp.c agp: don't lock pages 2007-07-27 10:46:26 +10:00
sis-agp.c
sworks-agp.c
uninorth-agp.c
via-agp.c agp: Add device id for P4M900 to via-agp module 2007-08-25 18:10:52 +10:00