]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
staging: mt7621-dma: Add braces around else branches
authorKimberly Brown <kimbrownkd@gmail.com>
Wed, 24 Oct 2018 04:56:53 +0000 (00:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Nov 2018 13:16:33 +0000 (14:16 +0100)
Add braces around else branches in conditional statements that include
branches with multiple statements. This style complies with the Linux
kernel coding style and improves consistency and readability. Issues found by
checkpatch.

Signed-off-by: Kimberly Brown <kimbrownkd@gmail.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dma/mtk-hsdma.c

index df6ebf41bdea4dc7301414c5cb9b42e5679d5472..35556f024aa1f2b7567acb76a4942a80bb3c3a0a 100644 (file)
@@ -418,8 +418,9 @@ static void mtk_hsdma_chan_done(struct mtk_hsdam_engine *hsdma,
                        vchan_cookie_complete(&desc->vdesc);
                        chan_issued = gdma_next_desc(chan);
                }
-       } else
+       } else {
                dev_dbg(hsdma->ddev.dev, "no desc to complete\n");
+       }
 
        if (chan_issued)
                set_bit(chan->id, &hsdma->chan_issued);
@@ -456,8 +457,9 @@ static void mtk_hsdma_issue_pending(struct dma_chan *c)
                if (gdma_next_desc(chan)) {
                        set_bit(chan->id, &hsdma->chan_issued);
                        tasklet_schedule(&hsdma->task);
-               } else
+               } else {
                        dev_dbg(hsdma->ddev.dev, "no desc to issue\n");
+               }
        }
        spin_unlock_bh(&chan->vchan.lock);
 }