Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1456180 > unrolled thread

[patch] CRIS v32: remove some double unlocks

Started byDan Carpenter <dan.carpenter@oracle.com>
First post2016-08-04 07:40 +0200
Last post2016-08-04 07:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [patch] CRIS v32: remove some double unlocks Dan Carpenter <dan.carpenter@oracle.com> - 2016-08-04 07:40 +0200

#1456180 — [patch] CRIS v32: remove some double unlocks

FromDan Carpenter <dan.carpenter@oracle.com>
Date2016-08-04 07:40 +0200
Subject[patch] CRIS v32: remove some double unlocks
Message-ID<s2jxT-4Ea-11@gated-at.bofh.it>
We unlocked a few lines earlier so we can delete these unlocks.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/arch/cris/arch-v32/mach-a3/dma.c b/arch/cris/arch-v32/mach-a3/dma.c
index 47c64bf..11f417f 100644
--- a/arch/cris/arch-v32/mach-a3/dma.c
+++ b/arch/cris/arch-v32/mach-a3/dma.c
@@ -41,7 +41,6 @@ int crisv32_request_dma(unsigned int dmanr, const char *device_id,
 
 		if (options & DMA_PANIC_ON_ERROR)
 			panic("request_dma error!");
-		spin_unlock_irqrestore(&dma_lock, flags);
 		return -EBUSY;
 	}
 	clk_ctrl = REG_RD(clkgen, regi_clkgen, rw_clk_ctrl);
diff --git a/arch/cris/arch-v32/mach-fs/dma.c b/arch/cris/arch-v32/mach-fs/dma.c
index fc6416a..7c93679 100644
--- a/arch/cris/arch-v32/mach-fs/dma.c
+++ b/arch/cris/arch-v32/mach-fs/dma.c
@@ -43,7 +43,6 @@ int crisv32_request_dma(unsigned int dmanr, const char *device_id,
 		}
 		if (options & DMA_PANIC_ON_ERROR)
 			panic("request_dma error!");
-		spin_unlock_irqrestore(&dma_lock, flags);
 		return -EBUSY;
 	}
 	clk_ctrl = REG_RD(config, regi_config, rw_clk_ctrl);

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web