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
..
2008-02-05 14:33:33 +10:00
2008-01-31 11:25:51 +11:00
2008-02-03 17:11:42 +02:00
2007-11-14 18:45:37 -08:00
2008-01-14 08:52:22 -08:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2007-05-08 11:15:09 -07:00
2008-02-03 17:11:42 +02:00
2008-02-03 17:11:42 +02:00
2007-10-19 23:21:04 +02:00
2008-01-30 13:30:27 +01:00
2008-02-03 17:11:42 +02:00
2007-10-19 23:21:04 +02:00
2008-01-24 20:40:04 -08:00
2007-10-17 08:43:01 -07:00
2008-01-24 20:40:04 -08:00
2007-07-19 10:04:43 -07:00
2007-10-29 07:41:32 -07:00
2007-07-29 17:09:29 -07:00
2007-10-18 14:37:27 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-17 08:42:55 -07:00
2008-02-02 15:14:48 -08:00
2007-07-21 17:49:16 -07:00
2007-10-18 14:37:23 -07:00
2008-02-01 09:26:32 +01:00
2007-07-16 09:05:46 -07:00
2007-10-19 11:53:43 -07:00
2008-02-03 17:11:42 +02:00
2008-02-03 17:11:42 +02:00
2007-10-17 08:42:56 -07:00
2007-10-19 11:53:34 -07:00