Replace "if (x) free (x)" with "free (x)", gas
[deliverable/binutils-gdb.git] / gas / config / tc-aarch64.c
index da786ba5e9bd51c0b1c5a5aadfbbbdebd321e529..728fd10a4e2e246e4e8fd3f97c0a11a88e285641 100644 (file)
@@ -8269,8 +8269,7 @@ md_apply_fix (fixS * fixP, valueT * valP, segT seg)
   /* Free the allocated the struct aarch64_inst.
      N.B. currently there are very limited number of fix-up types actually use
      this field, so the impact on the performance should be minimal .  */
-  if (fixP->tc_fix_data.inst != NULL)
-    free (fixP->tc_fix_data.inst);
+  free (fixP->tc_fix_data.inst);
 
   return;
 }
@@ -9557,8 +9556,7 @@ aarch64_elf_copy_symbol_attributes (symbolS *dest, symbolS *src)
     }
   else
     {
-      if (destelf->size != NULL)
-       free (destelf->size);
+      free (destelf->size);
       destelf->size = NULL;
     }
   S_SET_SIZE (dest, S_GET_SIZE (src));
This page took 0.032112 seconds and 4 git commands to generate.