mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
staging: mt7621-dma: align to match open parenthesis
Align to match open parenthesis. "CHECK: Alignment should match open parenthesis". Issue detected by checkpatch tool. Signed-off-by: Jules Irenge <jbi.octave@gmail.com> Link: https://lore.kernel.org/r/20191105220320.50180-1-jbi.octave@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e1955fcdc7
commit
e719031067
@@ -548,7 +548,8 @@ static int mtk_hsdam_alloc_desc(struct mtk_hsdam_engine *hsdma,
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
chan->tx_ring = dma_alloc_coherent(hsdma->ddev.dev,
|
chan->tx_ring = dma_alloc_coherent(hsdma->ddev.dev,
|
||||||
2 * HSDMA_DESCS_NUM * sizeof(*chan->tx_ring),
|
2 * HSDMA_DESCS_NUM *
|
||||||
|
sizeof(*chan->tx_ring),
|
||||||
&chan->desc_addr, GFP_ATOMIC | __GFP_ZERO);
|
&chan->desc_addr, GFP_ATOMIC | __GFP_ZERO);
|
||||||
if (!chan->tx_ring)
|
if (!chan->tx_ring)
|
||||||
goto no_mem;
|
goto no_mem;
|
||||||
@@ -569,8 +570,8 @@ static void mtk_hsdam_free_desc(struct mtk_hsdam_engine *hsdma,
|
|||||||
{
|
{
|
||||||
if (chan->tx_ring) {
|
if (chan->tx_ring) {
|
||||||
dma_free_coherent(hsdma->ddev.dev,
|
dma_free_coherent(hsdma->ddev.dev,
|
||||||
2 * HSDMA_DESCS_NUM * sizeof(*chan->tx_ring),
|
2 * HSDMA_DESCS_NUM * sizeof(*chan->tx_ring),
|
||||||
chan->tx_ring, chan->desc_addr);
|
chan->tx_ring, chan->desc_addr);
|
||||||
chan->tx_ring = NULL;
|
chan->tx_ring = NULL;
|
||||||
chan->rx_ring = NULL;
|
chan->rx_ring = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user