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>
This commit is contained in:
parent
16a1a66a5e
commit
ecdc35c453
@ -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(¤t->mm->mmap_sem);
|
down_read(¤t->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)
|
||||||
|
Loading…
Reference in New Issue
Block a user