Skip to content

Commit

Permalink
dw_dmac: remove redundant check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Vinod Koul committed Jan 9, 2013
1 parent cbd6531 commit 21e93c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dw_dmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 21e93c1

Please sign in to comment.