From 9fbb53c7c8d54ec90dc308cfb50902b90900b946 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 20 May 2020 22:49:01 +0930 Subject: Replace "if (x) free (x)" with "free (x)", gas * atof-generic.c: Replace "if (x) free (x)" with "free (x)" throughout. * config/obj-elf.c: Likewise. * config/tc-aarch64.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-nios2.c: Likewise. * config/tc-tic30.c: Likewise. * ecoff.c: Likewise. * read.c: Likewise. * stabs.c: Likewise. * symbols.c: Likewise. * testsuite/gas/all/test-gen.c: Likewise. --- gas/testsuite/gas/all/test-gen.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gas/testsuite') diff --git a/gas/testsuite/gas/all/test-gen.c b/gas/testsuite/gas/all/test-gen.c index 11143ad..f2e0bfe 100644 --- a/gas/testsuite/gas/all/test-gen.c +++ b/gas/testsuite/gas/all/test-gen.c @@ -711,10 +711,8 @@ output_insns (func **insn, FILE *as_in, FILE *dis_out) for (; part-- > 0;) { skip: - if (data[part].as_in) - free (data[part].as_in); - if (data[part].dis_out - && data[part].dis_out != data[part].as_in) + free (data[part].as_in); + if (data[part].dis_out != data[part].as_in) free (data[part].dis_out); } -- cgit v1.1