Skip to content

Commit

Permalink
dmaengine: axi-dmac: remove parantheses in if block
Browse files Browse the repository at this point in the history
Change is purely cosmetic and done to sync closer to upstream.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
  • Loading branch information
commodo committed Mar 27, 2019
1 parent fd16cb0 commit 6af5e44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/dma/dma-axi-dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,10 @@ static void axi_dmac_start_transfer(struct axi_dmac_chan *chan)
desc->num_submitted++;
if (desc->num_submitted == desc->num_sgs ||
desc->have_partial_xfer) {
if (desc->cyclic) {
if (desc->cyclic)
desc->num_submitted = 0; /* Start again */
} else {
else
chan->next_desc = NULL;
}
flags |= AXI_DMAC_FLAG_LAST;
} else {
chan->next_desc = desc;
Expand Down

0 comments on commit 6af5e44

Please sign in to comment.