diff options
| author | Axel Haslam <axelhaslam@ti.com> | 2011-05-31 09:24:44 +0100 |
|---|---|---|
| committer | Andy Green <andy.green@linaro.org> | 2011-05-31 11:06:13 +0100 |
| commit | 4cb9bfde99cb9b80766391936767e0f6628ee218 (patch) | |
| tree | d763c560a33bbf7b165f6b48d6f7b729dbdb9d58 /arch | |
| parent | dbe54591cacffc8f963fce029f20734780631d01 (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>
Diffstat (limited to 'arch')
| -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 9f2ce6072ee..2a86fe51d7c 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c @@ -454,7 +454,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; |
