From b557ec3a057ab094e66aec0a8f8b0a5810125846 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Fri, 24 Sep 2021 14:23:06 +1000 Subject: [PATCH] mw_debug: Default to jtag backend if unspecified It avoids typing it all the time Signed-off-by: Benjamin Herrenschmidt --- scripts/mw_debug/mw_debug.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/mw_debug/mw_debug.c b/scripts/mw_debug/mw_debug.c index d9fe749..30803e5 100644 --- a/scripts/mw_debug/mw_debug.c +++ b/scripts/mw_debug/mw_debug.c @@ -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) -- 2.30.2