summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasiliy Kulikov <segooon@gmail.com>2010-10-10 21:28:55 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-10 11:25:00 -0700
commit2dff52795746846ca0accb639037c26715da12d5 (patch)
tree846625f44bc2c3d7f74258e0b57ed46081ba7acc
parent53e974db655da7df6f1ac5db8da94cbeb288ab35 (diff)
downloadop-kernel-dev-2dff52795746846ca0accb639037c26715da12d5.zip
op-kernel-dev-2dff52795746846ca0accb639037c26715da12d5.tar.gz
staging: tidspbridge: fix signess error
i was unsigned, so check for (i < 0) made no sense. Made it signed. Signed-off-by: Vasiliy Kulikov <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/tidspbridge/core/dsp-mmu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/tidspbridge/core/dsp-mmu.c b/drivers/staging/tidspbridge/core/dsp-mmu.c
index 3c978f9..983c95a 100644
--- a/drivers/staging/tidspbridge/core/dsp-mmu.c
+++ b/drivers/staging/tidspbridge/core/dsp-mmu.c
@@ -219,7 +219,8 @@ u32 user_to_dsp_map(struct iommu *mmu, u32 uva, u32 da, u32 size,
struct page **usr_pgs)
{
int res, w;
- unsigned pages, i;
+ unsigned pages;
+ int i;
struct vm_area_struct *vma;
struct mm_struct *mm = current->mm;
struct sg_table *sgt;
OpenPOWER on IntegriCloud