aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/dma_40.c
diff options
context:
space:
mode:
authorvirupaxs <virupax.sadashivpetimath@stericsson.com>2010-03-15 13:55:24 +0530
committerJohn Rigby <john.rigby@linaro.org>2010-09-02 22:44:40 -0600
commitc1d510da775becd22e13a527106aef4acb201e90 (patch)
tree22cd2d7ada601236d0e8d64830b2344377ba2f56 /arch/arm/mach-ux500/dma_40.c
parent6d5f937af6128496bd19725f9e38926373c3ddba (diff)
downloadlinux-2.6.34-ux500-c1d510da775becd22e13a527106aef4acb201e90.tar.gz
coverity fixes 18th march
Signed-off-by: virupaxs <virupax.sadashivpetimath@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/dma_40.c')
-rwxr-xr-xarch/arm/mach-ux500/dma_40.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/dma_40.c b/arch/arm/mach-ux500/dma_40.c
index a616f592807..37de49281ff 100755
--- a/arch/arm/mach-ux500/dma_40.c
+++ b/arch/arm/mach-ux500/dma_40.c
@@ -3219,6 +3219,9 @@ int stm_dma_residue(int pipe_id)
params = ((void *)
(dma_drv_data->lchan_params_base.log_addr)
+ (info->src_dev_type * 32));
+ else
+ return remaining;
+
remaining =
MEM_READ_BITS(params->dmac_lcsp2, MEM_LCSP2_ECNT_MASK,
MEM_LCSP2_ECNT_POS);