* [PATCH] dmaengine: xilinx_vdma: Remove unnecessary variable initializations
@ 2016-03-03 17:32 ` Kedareswara rao Appana
0 siblings, 0 replies; 4+ messages in thread
From: Kedareswara rao Appana @ 2016-03-03 17:32 UTC (permalink / raw)
To: linux-arm-kernel
This patch removes the unnecessary variable initializations
in the driver.
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
---
drivers/dma/xilinx/xilinx_vdma.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
index bc2ca45..0ee0321 100644
--- a/drivers/dma/xilinx/xilinx_vdma.c
+++ b/drivers/dma/xilinx/xilinx_vdma.c
@@ -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);
--
2.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: xilinx_vdma: Remove unnecessary variable initializations
@ 2016-03-03 17:32 ` Kedareswara rao Appana
0 siblings, 0 replies; 4+ messages in thread
From: Kedareswara rao Appana @ 2016-03-03 17:32 UTC (permalink / raw)
To: dan.j.williams, vinod.koul, michal.simek, soren.brinkmann,
appanad, moritz.fischer, laurent.pinchart, luis, anirudh
Cc: dmaengine, linux-arm-kernel, linux-kernel
This patch removes the unnecessary variable initializations
in the driver.
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
---
drivers/dma/xilinx/xilinx_vdma.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/xilinx/xilinx_vdma.c b/drivers/dma/xilinx/xilinx_vdma.c
index bc2ca45..0ee0321 100644
--- a/drivers/dma/xilinx/xilinx_vdma.c
+++ b/drivers/dma/xilinx/xilinx_vdma.c
@@ -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);
--
2.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] dmaengine: xilinx_vdma: Remove unnecessary variable initializations
2016-03-03 17:32 ` Kedareswara rao Appana
@ 2016-03-04 15:03 ` Vinod Koul
-1 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2016-03-04 15:03 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 03, 2016 at 11:02:42PM +0530, Kedareswara rao Appana wrote:
> This patch removes the unnecessary variable initializations
> in the driver.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dmaengine: xilinx_vdma: Remove unnecessary variable initializations
@ 2016-03-04 15:03 ` Vinod Koul
0 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2016-03-04 15:03 UTC (permalink / raw)
To: Kedareswara rao Appana
Cc: dan.j.williams, michal.simek, soren.brinkmann, appanad,
moritz.fischer, laurent.pinchart, luis, anirudh, dmaengine,
linux-arm-kernel, linux-kernel
On Thu, Mar 03, 2016 at 11:02:42PM +0530, Kedareswara rao Appana wrote:
> This patch removes the unnecessary variable initializations
> in the driver.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-04 15:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03 17:32 [PATCH] dmaengine: xilinx_vdma: Remove unnecessary variable initializations Kedareswara rao Appana
2016-03-03 17:32 ` Kedareswara rao Appana
2016-03-04 15:03 ` Vinod Koul
2016-03-04 15:03 ` Vinod Koul
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.