]> git.sur5r.net Git - openocd/commit
jtag: clarify jtag->init() and jtag->quit() definitions
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 13 Apr 2011 19:51:42 +0000 (21:51 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 19 Apr 2011 10:43:16 +0000 (12:43 +0200)
commite984dc1f162ab2bd94629c32d640d804b0295553
tree6466a60faec99169df7eab2bcc1b0acd38646041
parentb69119668ed8d9633280f8b596fe9af60f51644b
jtag: clarify jtag->init() and jtag->quit() definitions

only set jtag global pointer if jtag->init() succeeds. Less code,
more clear what the rules are.

Fix nit that error value from init() was not propagated unmodified.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/jtag/core.c
src/jtag/interface.h