]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] arch/ppc: Remove an unnecessary pci_dev_put
authorJulia Lawall <julia@diku.dk>
Thu, 13 Dec 2007 23:56:07 +0000 (15:56 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 06:13:50 +0000 (17:13 +1100)
commitbd4c2edc90c020ba5573da5dbd796fd6ab78692b
tree61605555b670b0a4e2d6d0da0c8b2c6a1bbb54f5
parentca55f0570304dd625370f85097fec81dd5a92090
[POWERPC] arch/ppc: Remove an unnecessary pci_dev_put

Remove an unnecessary pci_dev_put.  pci_dev_put is called implicitly
by the subsequent call to pci_get_device.

The problem was detected using the following semantic patch, and
corrected by hand.

@@
expression dev;
expression E;
@@

- pci_dev_put(dev)
   ... when != dev = E
- pci_get_device(...,dev)

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc/platforms/prep_pci.c