powerpc/powernv: Remove unneeded variable: "rc"
Remove unneeded variable: "rc". Signed-off-by: dingsenjie <dingsenjie@yulong.com> Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210326115356.12444-1-dingsenjie@163.com
This commit is contained in:
parent
4fe529449d
commit
69931cc387
@ -105,7 +105,6 @@ static int opal_prd_mmap(struct file *file, struct vm_area_struct *vma)
|
||||
{
|
||||
size_t addr, size;
|
||||
pgprot_t page_prot;
|
||||
int rc;
|
||||
|
||||
pr_devel("opal_prd_mmap(0x%016lx, 0x%016lx, 0x%lx, 0x%lx)\n",
|
||||
vma->vm_start, vma->vm_end, vma->vm_pgoff,
|
||||
@ -121,10 +120,8 @@ static int opal_prd_mmap(struct file *file, struct vm_area_struct *vma)
|
||||
page_prot = phys_mem_access_prot(file, vma->vm_pgoff,
|
||||
size, vma->vm_page_prot);
|
||||
|
||||
rc = remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size,
|
||||
return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size,
|
||||
page_prot);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static bool opal_msg_queue_empty(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user