jtag_ejtag: Simplify two code snippets.