net: cosa: remove redundant braces {}
authorPeng Li <lipeng321@huawei.com>
Wed, 16 Jun 2021 07:23:34 +0000 (15:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 07:52:33 +0000 (00:52 -0700)
This patch removes redundant braces {}, to fix the
checkpatch.pl warning:
"braces {} are not necessary for single statement blocks".

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/cosa.c

index b3dab61f176ff1d4f23c52fdd197240cc9a9c653..6125ca49c94474bb82d84ebef1b1d71f9b3440fa 100644 (file)
@@ -1845,11 +1845,11 @@ reject:         /* Reject the packet */
        disable_dma(cosa->dma);
        clear_dma_ff(cosa->dma);
        set_dma_mode(cosa->dma, DMA_MODE_READ);
-       if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff)) {
+       if (cosa_dma_able(cosa->rxchan, cosa->rxbuf, cosa->rxsize & 0x1fff))
                set_dma_addr(cosa->dma, virt_to_bus(cosa->rxbuf));
-       } else {
+       else
                set_dma_addr(cosa->dma, virt_to_bus(cosa->bouncebuf));
-       }
+
        set_dma_count(cosa->dma, (cosa->rxsize&0x1fff));
        enable_dma(cosa->dma);
        release_dma_lock(flags);