drivers/rapidio/devices/tsi721_dma.c: delete an unnecessary variable initialisation...
authorMarkus Elfring <[email protected]>
Tue, 6 Feb 2018 23:40:10 +0000 (15:40 -0800)
committerLinus Torvalds <[email protected]>
Wed, 7 Feb 2018 02:32:46 +0000 (18:32 -0800)
The local variable "desc" will eventually be set to an appropriate pointer
a bit later. Thus omit the explicit initialisation at the beginning.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Markus Elfring <[email protected]>
Acked-by: Alexandre Bounine <[email protected]>
Cc: Matt Porter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rapidio/devices/tsi721_dma.c

index f7bc85a27d1b9b35360319a476a3269de9692f8c..14fc36ac3d854b460e396a324a1327240b7d4ef4 100644 (file)
@@ -735,7 +735,7 @@ static dma_cookie_t tsi721_tx_submit(struct dma_async_tx_descriptor *txd)
 static 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);