Skip to content

Commit cb91287

Browse files
Dragan Simicbroonie
authored andcommitted
spi: rockchip-sfc: Perform trivial code cleanups
Perform a couple of trivial code cleanups, to avoid unnecessary line wrapping by using the 100-column width a bit better, and to drop a stray empty line. No intended functional changes are introduced by these code cleanups. Reviewed-by: Heiko Stuebner <[email protected]> Signed-off-by: Dragan Simic <[email protected]> Link: https://patch.msgid.link/4dcd5d9cc4a20c9c6ad504d945475b767399b32f.1727601608.git.dsimic@manjaro.org Signed-off-by: Mark Brown <[email protected]>
1 parent f7bc152 commit cb91287

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/spi/spi-rockchip-sfc.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,7 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
591591
return PTR_ERR(sfc->hclk);
592592
}
593593

594-
sfc->use_dma = !of_property_read_bool(sfc->dev->of_node,
595-
"rockchip,sfc-no-dma");
594+
sfc->use_dma = !of_property_read_bool(sfc->dev->of_node, "rockchip,sfc-no-dma");
596595

597596
if (sfc->use_dma) {
598597
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
@@ -602,8 +601,7 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
602601
}
603602

604603
sfc->buffer = dmam_alloc_coherent(dev, SFC_MAX_IOSIZE_VER3,
605-
&sfc->dma_buffer,
606-
GFP_KERNEL);
604+
&sfc->dma_buffer, GFP_KERNEL);
607605
if (!sfc->buffer)
608606
return -ENOMEM;
609607
}
@@ -629,7 +627,6 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
629627
0, pdev->name, sfc);
630628
if (ret) {
631629
dev_err(dev, "Failed to request irq\n");
632-
633630
goto err_irq;
634631
}
635632

0 commit comments

Comments
 (0)