drivers-misc-move-misplaced-pci_dev_puts
commit54722448cde258598bd80e7d774f7c3938bb7b83
authorJulia Lawall <julia@diku.dk>
Fri, 9 Nov 2007 03:46:26 +0000 (9 03:46 +0000)
committerMatthias Urlichs <smurf@hera.kernel.org>
Wed, 14 Nov 2007 11:11:27 +0000 (14 11:11 +0000)
tree2e115497b78e1e78c576fbdbc91eb9da466031e4
parent33b856cf44f96d26e31c3f9c88f70e959e0b4aa6
drivers-misc-move-misplaced-pci_dev_puts

Move pci_dev_put outside the loops in which it occurs.  Within the loop,
pci_dev_put is done implicitly by 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/ioc4.c