mw_debug: Default to jtag backend if unspecified

It avoids typing it all the time

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
icbi-issue
Benjamin Herrenschmidt 3 years ago
parent 4bdfef9a20
commit b557ec3a05

@ -744,10 +744,8 @@ int main(int argc, char *argv[])
}
}

if (b == NULL) {
fprintf(stderr, "No backend selected\n");
exit(1);
}
if (b == NULL)
b = &jtag_backend;

rc = b->init(target);
if (rc < 0)

Loading…
Cancel
Save