ioat3: fix uninitialized var warnings
commitcdef57dbb618608bfffda2fc32c8d0a4012a1d3a
authorDan Williams <dan.j.williams@intel.com>
Mon, 21 Sep 2009 16:22:29 +0000 (21 09:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 21 Sep 2009 16:22:29 +0000 (21 09:22 -0700)
treee58d3301ea4fb264f713c4602c25e6451d4e6707
parentf477f5b3316f39c841aa121a219b82b3a56e7da7
ioat3: fix uninitialized var warnings

drivers/dma/ioat/dma_v3.c: In function 'ioat3_prep_memset_lock':
drivers/dma/ioat/dma_v3.c:439: warning: 'fill' may be used uninitialized in this function
drivers/dma/ioat/dma_v3.c:437: warning: 'desc' may be used uninitialized in this function
drivers/dma/ioat/dma_v3.c: In function '__ioat3_prep_xor_lock':
drivers/dma/ioat/dma_v3.c:489: warning: 'xor' may be used uninitialized in this function
drivers/dma/ioat/dma_v3.c:486: warning: 'desc' may be used uninitialized in this function
drivers/dma/ioat/dma_v3.c: In function '__ioat3_prep_pq_lock':
drivers/dma/ioat/dma_v3.c:631: warning: 'pq' may be used uninitialized in this function
drivers/dma/ioat/dma_v3.c:628: warning: 'desc' may be used uninitialized in this function

gcc-4.0, unlike gcc-4.3, does not see that these variables are
initialized before use.  Convert the descriptor loops to do-while make
this initialization apparent.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat/dma_v3.c