]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove an extraneous 'return' from void method
authorTom Tromey <tom@tromey.com>
Sat, 27 Sep 2025 21:12:34 +0000 (15:12 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 9 Oct 2025 21:29:25 +0000 (15:29 -0600)
cooked_index_functions::map_symbol_filenames returns 'void' but also
does "return ... expression".  While valid, this seems strange.  This
patch removes the unnecessary 'return'.

Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
gdb/dwarf2/cooked-index.h

index 42d7ec3313f74d30f409d205342057372aa4b87e..90a18af971ec5e4347f8eaa37e583c53b2579732 100644 (file)
@@ -260,8 +260,8 @@ struct cooked_index_functions : public dwarf2_base_index_functions
                             bool need_fullname) override
   {
     wait (objfile, true);
-    return (dwarf2_base_index_functions::map_symbol_filenames
-           (objfile, fun, need_fullname));
+    dwarf2_base_index_functions::map_symbol_filenames (objfile, fun,
+                                                      need_fullname);
   }
 
   void compute_main_name (struct objfile *objfile) override