Skip to content

Commit

Permalink
staging: tidspbridge: fix signess error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasiliy Kulikov authored and Greg Kroah-Hartman committed Oct 10, 2010
1 parent 53e974d commit 2dff527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/staging/tidspbridge/core/dsp-mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2dff527

Please sign in to comment.