@@ -171,7 +171,6 @@ static irqreturn_t milbeaut_hdmac_interr
{
struct milbeaut_hdmac_chan *mc = dev_id;
struct milbeaut_hdmac_desc *md;
- irqreturn_t ret = IRQ_HANDLED;
u32 val;
spin_lock(&mc->vc.lock);
@@ -201,7 +200,7 @@ static irqreturn_t milbeaut_hdmac_interr
out:
spin_unlock(&mc->vc.lock);
- return ret;
+ return IRQ_HANDLED;
}
static void milbeaut_hdmac_free_chan_resources(struct dma_chan *chan)
@@ -289,7 +288,6 @@ static int milbeaut_hdmac_terminate_all(
struct virt_dma_chan *vc = to_virt_chan(chan);
struct milbeaut_hdmac_chan *mc = to_milbeaut_hdmac_chan(vc);
unsigned long flags;
- int ret = 0;
u32 val;
LIST_HEAD(head);
@@ -311,7 +309,7 @@ static int milbeaut_hdmac_terminate_all(
vchan_dma_desc_free_list(vc, &head);
- return ret;
+ return 0;
}
static void milbeaut_hdmac_synchronize(struct dma_chan *chan)