2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 01:34:00 +08:00
linux-next/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 PCI: Convert to alloc_pci_dev() 2007-05-02 19:02:37 -07:00
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 [AGPGART] Lots of CodingStyle/whitespace cleanups. 2006-02-28 00:54:25 -05:00
Kconfig x86 gart: rename CONFIG_IOMMU to CONFIG_GART_IOMMU 2007-10-30 00:22:22 +01:00
Makefile [AGPGART] Fix modular agpgart ia64 allmodconfig 2007-02-20 14:18:01 -05:00
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 [AGPGART] prevent probe collision of sis-agp and amd64_agp 2007-04-26 14:22:50 -04:00
sworks-agp.c [AGPGART] sworks-agp: Switch to PCI ref counting APIs 2007-04-26 14:22:51 -04:00
uninorth-agp.c [POWERPC] Rename get_property to of_get_property: drivers 2007-05-02 20:04:32 +10:00
via-agp.c agp: Add device id for P4M900 to via-agp module 2007-08-25 18:10:52 +10:00