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>
*/
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);
*/
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);
*/
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);