drivers/rapidio/devices/tsi721_dma.c: delete an unnecessary variable initialisation in tsi721_alloc_chan_resources()
PATCH 71/114 drivers/rapidio/devices/tsi721_dma.c: delete an unnecessary variable initialisation in tsi721_alloc_chan_resources()
From: Markus Elfring <[email protected]>
Subject: drivers/rapidio/devices/tsi721_dma.c: delete an unnecessary variable initialisation in tsi721_alloc_chan_resources()
The local variable "desc" will eventually be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning.
Signed-off-by Markus Elfring <[email protected]>
Cc Matt Porter <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/rapidio/devices/tsi721_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rapidio/devices/tsi721_dma.c renamed from drivers/rapidio/devices/tsi721_dma.c~rapidio-tsi721_dma-delete-an-unnecessary-variable-initialisation-in-tsi721_alloc_chan_resources +1 -1
@@ -735,7 +735,7 @@ static dma_cookie_t tsi721_tx_submit(strstatic int tsi721_alloc_chan_resources (struct dma_chan *dchan) {struct tsi721_bdma_chan *bdma_chan =to_tsi721_chan (dchan); -struct tsi721_tx_desc *desc =NULL ; +struct tsi721_tx_desc *desc;int i;tsi_debug (DMA , &dchan->dev->device,"DMAC%d" , bdma_chan->id);
_