From ecdc35c453986781b95961c01b48bc4662c09cf4 Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Wed, 18 Jan 2017 17:07:52 +0100 Subject: 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 Signed-off-by: Geert Uytterhoeven --- arch/m68k/kernel/sys_m68k.c | 1 - 1 file changed, 1 deletion(-) (limited to 'arch/m68k/kernel') diff --git a/arch/m68k/kernel/sys_m68k.c b/arch/m68k/kernel/sys_m68k.c index 98a2daaae30c..933e4815dac8 100644 --- a/arch/m68k/kernel/sys_m68k.c +++ b/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(¤t->mm->mmap_sem); vma = find_vma(current->mm, addr); if (!vma || addr < vma->vm_start || addr + len > vma->vm_end) -- cgit v1.2.3