gdb: remove unnecessary NULL checks before xfree
[deliverable/binutils-gdb.git] / gdb / coffread.c
index fc44e53cc4c40521569b824fdaa5641c9a05c676..0f7a6e3e5ad0565e50d357379b04d96f54757e45 100644 (file)
@@ -1467,8 +1467,7 @@ patch_type (struct type *type, struct type *real_type)
     {
       /* The previous copy of TYPE_NAME is allocated by
         process_coff_symbol.  */
-      if (target->name ())
-       xfree ((char*) target->name ());
+      xfree ((char *) target->name ());
       target->set_name (xstrdup (real_target->name ()));
     }
 }
This page took 0.023397 seconds and 4 git commands to generate.