diff options
author | Julia Lawall <julia@diku.dk> | 2007-11-15 01:59:26 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-15 03:45:39 +0100 |
commit | 90d8dabf74179e6615bd4688a118e12ec29ab7aa (patch) | |
tree | e68d18238d7e07702c7ab2300f742c2d8cd4ebcb /drivers/dma/dmaengine.c | |
parent | paride: pf driver fixes (diff) | |
download | linux-90d8dabf74179e6615bd4688a118e12ec29ab7aa.tar.xz linux-90d8dabf74179e6615bd4688a118e12ec29ab7aa.zip |
drivers/misc: Move misplaced pci_dev_put's
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/dma/dmaengine.c')
0 files changed, 0 insertions, 0 deletions