Skip to contentSkip to conversation

Staging: ralink-gdma: fixed a brace coding style issue

PATCH New Harold André 1 participant 1 message Jun 9, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: ralink-gdma: fixed a brace coding style issue

Fixed a coding style issue.

---
 drivers/staging/ralink-gdma/ralink-gdma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/ralink-gdma/ralink-gdma.c +1 -2
index de3e357b2640..5854551d0a52 100644
@@ -814,9 +814,8 @@ static int gdma_dma_probe(struct platform_device *pdev)
 	dma_dev = devm_kzalloc(&pdev->dev,
 			       struct_size(dma_dev, chan, data->chancnt),
 			       GFP_KERNEL);
-	if (!dma_dev) {
+	if (!dma_dev)
 		return -EINVAL;
-	}
 	dma_dev->data = data;
 
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);

--
2.20.1