From: Mike Frysinger Date: Wed, 9 Nov 2022 19:12:42 +0000 (+0700) Subject: sim: ppc: pull default switch return out X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99961e814f795e4e4fd40e5f7f5bae52150963d5;p=binutils-gdb.git sim: ppc: pull default switch return out This saves a single line for the same result. By itself, it's not interesting, but we can further optimize the generated output and completely omit the switch table in some cases. Which we'll do in follow up commits. --- diff --git a/sim/ppc/dgen.c b/sim/ppc/dgen.c index 0f9b02f9108..0cc210b5fed 100644 --- a/sim/ppc/dgen.c +++ b/sim/ppc/dgen.c @@ -248,9 +248,8 @@ gen_spreg_c(spreg_table *table, lf *file) else ASSERT(0); } - lf_printf(file, " default:\n"); - lf_printf(file, " return 0;\n"); lf_printf(file, " }\n"); + lf_printf(file, " return 0;\n"); } lf_printf(file, "}\n"); }