summaryrefslogtreecommitdiff
path: root/drivers/staging/mt7621-dma
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay12@gmail.com>2019-05-19 22:30:32 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-20 10:57:19 +0200
commite23fa431e77de3165302d71d90285deff9376676 (patch)
tree0ae2096a904422dc83e9db2623e3863d01ae4265 /drivers/staging/mt7621-dma
parentcc9daca6e0ebd443ab1893f0d357fba1ce49bbeb (diff)
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 <puranjay12@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-dma')
-rw-r--r--drivers/staging/mt7621-dma/mtk-hsdma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c
index 0fbb9932d6bb..a58725dd2611 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);