Skip to content

Commit

Permalink
drivers/rapidio/devices/tsi721_dma.c: delete an unnecessary variable …
Browse files Browse the repository at this point in the history
…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.

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]>
  • Loading branch information
elfring authored and torvalds committed Feb 7, 2018
1 parent 28a5cd5 commit 6d94a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rapidio/devices/tsi721_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6d94a03

Please sign in to comment.