]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dmaengine.h: remove redundant else keyword
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 14 Feb 2013 09:00:16 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 14 Feb 2013 14:30:53 +0000 (20:00 +0530)
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>
include/linux/dmaengine.h

index bfcdecb5d87a16ad9af33dace1d9902d9d9823d2..f5939999cb6502b171cd6deb13eab1410f3f6dce 100644 (file)
@@ -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,