staging: tidspbridge: fix signess error
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 10 Oct 2010 17:28:55 +0000 (21:28 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 10 Oct 2010 18:25:00 +0000 (11:25 -0700)
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>
drivers/staging/tidspbridge/core/dsp-mmu.c

index 3c978f9c5824704ca52d1840427717634d88556e..983c95adc8ff2b84f51602da4324059c7b5345f5 100644 (file)
@@ -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;