Browse Source

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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Markus Elfring 8 years ago
parent
commit
ecdc35c453
1 changed files with 0 additions and 1 deletions
  1. 0 1
      arch/m68k/kernel/sys_m68k.c

+ 0 - 1
arch/m68k/kernel/sys_m68k.c

@@ -398,7 +398,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)
 		 * Verify that the specified address region actually belongs
 		 * to this process.
 		 */
-		ret = -EINVAL;
 		down_read(&current->mm->mmap_sem);
 		vma = find_vma(current->mm, addr);
 		if (!vma || addr < vma->vm_start || addr + len > vma->vm_end)