staging: tidspbridge: clean up bridge_mmap()
The variable offset is not used but in the debug log, so I don't see reason to calculate it here. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b8bfa4c57c
commit
4f8aae5375
1 changed files with 2 additions and 3 deletions
|
@ -257,7 +257,6 @@ err:
|
||||||
/* This function maps kernel space memory to user space memory. */
|
/* This function maps kernel space memory to user space memory. */
|
||||||
static int bridge_mmap(struct file *filp, struct vm_area_struct *vma)
|
static int bridge_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
u32 offset = vma->vm_pgoff << PAGE_SHIFT;
|
|
||||||
u32 status;
|
u32 status;
|
||||||
|
|
||||||
DBC_ASSERT(vma->vm_start < vma->vm_end);
|
DBC_ASSERT(vma->vm_start < vma->vm_end);
|
||||||
|
@ -265,8 +264,8 @@ static int bridge_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
vma->vm_flags |= VM_RESERVED | VM_IO;
|
vma->vm_flags |= VM_RESERVED | VM_IO;
|
||||||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
||||||
|
|
||||||
dev_dbg(bridge, "%s: vm filp %p offset %x start %lx end %lx page_prot "
|
dev_dbg(bridge, "%s: vm filp %p start %lx end %lx page_prot %ulx "
|
||||||
"%ulx flags %lx\n", __func__, filp, offset,
|
"flags %lx\n", __func__, filp,
|
||||||
vma->vm_start, vma->vm_end, vma->vm_page_prot,
|
vma->vm_start, vma->vm_end, vma->vm_page_prot,
|
||||||
vma->vm_flags);
|
vma->vm_flags);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue