Skip to contentSkip to conversation

staging: tidspbridge: fix signess error

PATCH New Vasiliy Kulikov 1 participant 1 message Oct 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: tidspbridge: fix signess error

i was unsigned, so check for (i < 0) made no sense. Made it signed.

---
I cannot compile this driver, so it is not tested.

 drivers/staging/tidspbridge/core/dsp-mmu.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/staging/tidspbridge/core/dsp-mmu.c +2 -1
index 3c978f9..983c95a 100644
@@ -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;
Signature · 1 line
1.7.0.4