From: Nils-Christian Kempke Date: Wed, 6 Apr 2022 08:11:23 +0000 (+0200) Subject: gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b863b097ee7a79b1114b9dd386864bc3c23a51b0;p=binutils-gdb.git gdb, infcmd: remove redundant ERROR_NO_INFERIOR in continue_command The ERROR_NO_INFERIOR macro is already called at the beginning of the function continue_command. Since target/inferior are not switched in-between, the second call to it is redundant. Co-Authored-By: Christina Schimpe --- diff --git a/gdb/infcmd.c b/gdb/infcmd.c index e2032d18564..a68611538f2 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -735,7 +735,6 @@ continue_command (const char *args, int from_tty) } } - ERROR_NO_INFERIOR; ensure_not_tfind_mode (); if (!non_stop || !all_threads_p)