From: Andy Shevchenko Date: Wed, 9 Jan 2013 08:17:12 +0000 (+0200) Subject: dw_dmac: remove redundant check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=21e93c1e7dae0e8b1914a522c331f0f7763fa89d;p=linux-beck.git dw_dmac: remove redundant check There is no need to check the callback_required parameter, due to we check the callback pointer to be a non-NULL. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index dd7a8192d5a0..c74a7ec9bb9f 100644 --- a/drivers/dma/dw_dmac.c +++ b/drivers/dma/dw_dmac.c @@ -347,7 +347,7 @@ dwc_descriptor_complete(struct dw_dma_chan *dwc, struct dw_desc *desc, spin_unlock_irqrestore(&dwc->lock, flags); - if (callback_required && callback) + if (callback) callback(param); }