Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69490634 authored by Kedareswara rao Appana's avatar Kedareswara rao Appana Committed by Vinod Koul
Browse files

dmaengine: xilinx_vdma: Remove unnecessary variable initializations



This patch removes the unnecessary variable initializations
in the driver.

Signed-off-by: default avatarKedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 9495f264
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -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)
static void xilinx_vdma_halt(struct xilinx_vdma_chan *chan)
{
{
	int err = 0;
	int err;
	u32 val;
	u32 val;


	vdma_ctrl_clr(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RUNSTOP);
	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)
static void xilinx_vdma_start(struct xilinx_vdma_chan *chan)
{
{
	int err = 0;
	int err;
	u32 val;
	u32 val;


	vdma_ctrl_set(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RUNSTOP);
	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)
static int xilinx_vdma_reset(struct xilinx_vdma_chan *chan)
{
{
	int err = 0;
	int err;
	u32 tmp;
	u32 tmp;


	vdma_ctrl_set(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RESET);
	vdma_ctrl_set(chan, XILINX_VDMA_REG_DMACR, XILINX_VDMA_DMACR_RESET);