diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-02-14 04:00:16 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-02-14 09:30:53 -0500 |
commit | 978c4172af48f0adc082f8b1d94acb817d947730 (patch) | |
tree | 7d4257e5f4c46aeed9b4ea4644928a578ac6195e /include | |
parent | 88b386c0a7c278581d2b8e2c2761d12f6475938d (diff) |
dmaengine.h: remove redundant else keyword
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dmaengine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index bfcdecb5d87a..f5939999cb65 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -610,8 +610,8 @@ static inline int dmaengine_device_control(struct dma_chan *chan, | |||
610 | { | 610 | { |
611 | if (chan->device->device_control) | 611 | if (chan->device->device_control) |
612 | return chan->device->device_control(chan, cmd, arg); | 612 | return chan->device->device_control(chan, cmd, arg); |
613 | else | 613 | |
614 | return -ENOSYS; | 614 | return -ENOSYS; |
615 | } | 615 | } |
616 | 616 | ||
617 | static inline int dmaengine_slave_config(struct dma_chan *chan, | 617 | static inline int dmaengine_slave_config(struct dma_chan *chan, |