linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: omap2: remove unneeded variable: "errata"
@ 2021-06-24  3:27 13145886936
  2021-06-24  7:28 ` Russell King - ARM Linux admin
  2021-06-26  0:23 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: 13145886936 @ 2021-06-24  3:27 UTC (permalink / raw)
  To: tony, linux, linux-arm-kernel; +Cc: linux-omap, linux-kernel, gushengxian

From: gushengxian <gushengxian@yulong.com>

Remove unneeded variable: "errata".

Signed-off-by: gushengxian <gushengxian@yulong.com>
---
 arch/arm/mach-omap2/dma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c
index dfc9b21ff19b..ba4a48e3d264 100644
--- a/arch/arm/mach-omap2/dma.c
+++ b/arch/arm/mach-omap2/dma.c
@@ -79,7 +79,6 @@ static const struct omap_dma_reg reg_map[] = {
 
 static unsigned configure_dma_errata(void)
 {
-	unsigned errata = 0;
 
 	/*
 	 * Errata applicable for OMAP2430ES1.0 and all omap2420
@@ -158,7 +157,7 @@ static unsigned configure_dma_errata(void)
 	if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP))
 		SET_DMA_ERRATA(DMA_ROMCODE_BUG);
 
-	return errata;
+	return 0;
 }
 
 static const struct dma_slave_map omap24xx_sdma_dt_map[] = {
-- 
2.25.1



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-26  0:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-24  3:27 [PATCH] ARM: omap2: remove unneeded variable: "errata" 13145886936
2021-06-24  7:28 ` Russell King - ARM Linux admin
2021-06-26  0:23 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).