ide: kill ide_dma_submit_check
commitc641483fbe0aa08cd7c0580d019dc2d5a7e71138
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Dec 2010 12:46:09 +0000 (20 13:46 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 10:08:51 +0000 (24 11:08 +0100)
tree5bd0704ad6002cf0c353606954afaad1cc4752eb
parent596bb44dead047249c11df24b0e1ffaa514f4909
ide: kill ide_dma_submit_check

Merge ide_dma_submit_check into it's only caller.  Also use tail recursion
using a goto instead of a real recursion - this avoid overflowing the
stack in the pathological situation of an recurring error that is ignored.
We'll still be busy looping in ide_dma_cb, but at least won't eat up
all stack space after this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c