提交 ecdc35c4 编写于 作者: M Markus Elfring 提交者: Geert Uytterhoeven

m68k: Delete an unnecessary variable assignment in sys_cacheflush()

Delete an assignment for the local variable "ret" in an if branch
because it was initialised by the same value.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
上级 16a1a66a
...@@ -398,7 +398,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len) ...@@ -398,7 +398,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)
* Verify that the specified address region actually belongs * Verify that the specified address region actually belongs
* to this process. * to this process.
*/ */
ret = -EINVAL;
down_read(&current->mm->mmap_sem); down_read(&current->mm->mmap_sem);
vma = find_vma(current->mm, addr); vma = find_vma(current->mm, addr);
if (!vma || addr < vma->vm_start || addr + len > vma->vm_end) if (!vma || addr < vma->vm_start || addr + len > vma->vm_end)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册