jtag_ejtag: Simplify some code snippets.