MIPS: tlbex: Avoid duplicated single_insn_swpd
authorJames Hogan <james.hogan@imgtec.com>
Fri, 8 Jul 2016 13:05:56 +0000 (14:05 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 24 Jul 2016 11:16:00 +0000 (13:16 +0200)
commit2f8f8c04e8c72b38a0ecdd814b02c0fddc42b932
tree5e7b75ae6f6c8cec75b0f748c86c29d9340c3717
parentf7d9afea6cfb344021359ddd6101deb8f6e9cc76
MIPS: tlbex: Avoid duplicated single_insn_swpd

The expression "uasm_in_compat_space_p(swpd) && !uasm_rel_lo(swpd)" is
used twice in build_get_pgd_vmalloc64(), one of which is assigned to the
local variable single_insn_swpd. Update the other use to just use
single_insn_swpd instead to remove the duplication.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: David Daney <ddaney@caviumnetworks.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13779/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c