dmaengine: xilinx_vdma: Remove unnecessary variable initializations
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Thu, 3 Mar 2016 17:32:42 +0000 (23:02 +0530)
committerVinod Koul <vinod.koul@intel.com>
Fri, 4 Mar 2016 15:03:13 +0000 (20:33 +0530)
This patch removes the unnecessary variable initializations
in the driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_vdma.c

index bc2ca457247e3d93ed886201fd89da1b57843274..0ee0321868d36b3054acac0a02356e09cc0749a1 100644 (file)
@@ -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);