projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b386c
)
dmaengine.h: remove redundant else keyword
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Thu, 14 Feb 2013 09:00:16 +0000
(11:00 +0200)
committer
Vinod 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
patch
|
blob
|
history
diff --git
a/include/linux/dmaengine.h
b/include/linux/dmaengine.h
index
bfcdecb
..
f593999
100644
(file)
--- a/
include/linux/dmaengine.h
+++ b/
include/linux/dmaengine.h
@@
-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,