diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-01-09 03:17:12 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-01-09 09:30:59 -0500 |
commit | 21e93c1e7dae0e8b1914a522c331f0f7763fa89d (patch) | |
tree | d61a15466afc06cc098908de1486ebae77e6d3e3 /drivers/dma | |
parent | cbd65312ba6b508e994d40729e84a51301870bcc (diff) |
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 <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/dw_dmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
347 | 347 | ||
348 | spin_unlock_irqrestore(&dwc->lock, flags); | 348 | spin_unlock_irqrestore(&dwc->lock, flags); |
349 | 349 | ||
350 | if (callback_required && callback) | 350 | if (callback) |
351 | callback(param); | 351 | callback(param); |
352 | } | 352 | } |
353 | 353 | ||