diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-18 17:07:52 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-02-09 14:18:20 +0100 |
commit | ecdc35c453986781b95961c01b48bc4662c09cf4 (patch) | |
tree | fbc0e874032114bf3cc4b55d218ec7046175ce08 | |
parent | 16a1a66a5e8324dd6a2864ceaf3e246fc11f93a5 (diff) | |
download | op-kernel-dev-ecdc35c453986781b95961c01b48bc4662c09cf4.zip op-kernel-dev-ecdc35c453986781b95961c01b48bc4662c09cf4.tar.gz |
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>
-rw-r--r-- | arch/m68k/kernel/sys_m68k.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/m68k/kernel/sys_m68k.c b/arch/m68k/kernel/sys_m68k.c index 98a2daa..933e481 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) |