Skip to contentSkip to conversation

dmaengine: xilinx_vdma: Remove unnecessary variable initializations

PATCH Applied Kedareswara rao Appana 2 participants 2 messages Mar 3, 2016 – Mar 4, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: xilinx_vdma: Remove unnecessary variable initializations

This patch removes the unnecessary variable initializations in the driver.

---
 drivers/dma/xilinx/xilinx_vdma.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/dma/xilinx/xilinx_vdma.c +3 -3
index bc2ca45..0ee0321 100644
@@ -554,7 +554,7 @@ static bool xilinx_vdma_is_idle(struct xilinx_vdma_chan *chan)
  */
 static void xilinx_vdma_halt(struct xilinx_vdma_chan *chan)
 {
-	int err = 0;
+	int err;
 	u32 val;
 
 	vdma_ctrl_clr(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RUNSTOP);
@@ -579,7 +579,7 @@ static void xilinx_vdma_halt(struct xilinx_vdma_chan *chan)
  */
 static void xilinx_vdma_start(struct xilinx_vdma_chan *chan)
 {
-	int err = 0;
+	int err;
 	u32 val;
 
 	vdma_ctrl_set(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RUNSTOP);
@@ -756,7 +756,7 @@ static void xilinx_vdma_complete_descriptor(struct xilinx_vdma_chan *chan)
  */
 static int xilinx_vdma_reset(struct xilinx_vdma_chan *chan)
 {
-	int err = 0;
+	int err;
 	u32 tmp;
 
 	vdma_ctrl_set(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RESET);
Signature · 1 line
2.1.2
Applied
#1 lore raw
Quoted 2 lines · Kedareswara rao Appana

This patch removes the unnecessary variable initializations in the driver.

Applied, thanks

Signature · 1 line
~Vinod