From: Puranjay Mohan Date: Sun, 19 May 2019 17:00:32 +0000 (+0530) Subject: Staging: mt7621-dma: Remove braces around single if statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e23fa431e77de3165302d71d90285deff9376676;p=linux.git Staging: mt7621-dma: Remove braces around single if statement Fix following checkpatch.pl warning by removing unnecessary braces: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Puranjay Mohan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c index 0fbb9932d6bbd..a58725dd26119 100644 --- a/drivers/staging/mt7621-dma/mtk-hsdma.c +++ b/drivers/staging/mt7621-dma/mtk-hsdma.c @@ -664,9 +664,8 @@ static int mtk_hsdma_probe(struct platform_device *pdev) return -EINVAL; hsdma = devm_kzalloc(&pdev->dev, sizeof(*hsdma), GFP_KERNEL); - if (!hsdma) { + if (!hsdma) return -EINVAL; - } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_ioremap_resource(&pdev->dev, res);