Skip to content

Commit

Permalink
dmaengine.h: remove redundant else keyword
Browse files Browse the repository at this point in the history
dmaengine_device_control returns -ENOSYS in case the dma driver doesn't have
such functionality.

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 Feb 14, 2013
1 parent 88b386c commit 978c417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/dmaengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ static inline int dmaengine_device_control(struct dma_chan *chan,
{
if (chan->device->device_control)
return chan->device->device_control(chan, cmd, arg);
else
return -ENOSYS;

return -ENOSYS;
}

static inline int dmaengine_slave_config(struct dma_chan *chan,
Expand Down

0 comments on commit 978c417

Please sign in to comment.