]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/dwarf.c
TRUE/FALSE simplification
[thirdparty/binutils-gdb.git] / binutils / dwarf.c
index 74f28f563ce848fd560294b9275f6375dcc10357..23ee70510f7fcfe3dd38fba0c3a344c167cab87a 100644 (file)
@@ -2727,8 +2727,8 @@ read_and_display_attr_value (unsigned long           attribute,
     case DW_FORM_strx4:
       if (!do_loc)
        {
-         const char * suffix = strrchr (section->name, '.');
-         bfd_boolean  dwo = (suffix && strcmp (suffix, ".dwo") == 0) ? TRUE : FALSE;
+         const char *suffix = strrchr (section->name, '.');
+         bfd_boolean dwo = suffix && strcmp (suffix, ".dwo") == 0;
 
          if (do_wide)
            /* We have already displayed the form name.  */
@@ -7545,8 +7545,8 @@ display_debug_str_offsets (struct dwarf_section *section,
   unsigned char *end = start + section->size;
   unsigned char *curr = start;
 
-  const char * suffix = strrchr (section->name, '.');
-  bfd_boolean  dwo = (suffix && strcmp (suffix, ".dwo") == 0) ? TRUE : FALSE;
+  const char *suffix = strrchr (section->name, '.');
+  bfd_boolean dwo = suffix && strcmp (suffix, ".dwo") == 0;
 
   if (dwo)
     load_debug_section_with_follow (str_dwo, file);