diff options
author | Axel Haslam <axelhaslam@ti.com> | 2011-10-25 10:51:11 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-10-25 10:51:11 +0800 |
commit | 1a59883f98e9bd551ef222ce8e307da019cdb32c (patch) | |
tree | 06e2bbbfb2055bf5b32222ae459c8369ea6ed3c7 | |
parent | a824c46549ace2fd4fd8cd3309074ea211017d41 (diff) |
KW: iovmm: Initilaize the local err to 0
Initilaize the local err to 0 in map_iovm_area
Change-Id: I070562c89a662c95fe501d89ddea2e1af42a11e2
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
-rw-r--r-- | arch/arm/plat-omap/iovmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index b6af87f2bf4..ead9d8da0b0 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c @@ -451,7 +451,7 @@ static inline void sgtable_drain_kmalloc(struct sg_table *sgt) static int map_iovm_area(struct iommu *obj, struct iovm_struct *new, const struct sg_table *sgt, u32 flags) { - int err; + int err = 0; unsigned int i, j; struct scatterlist *sg; u32 da = new->da_start; |