From 2d982861e5e23d38653df7d8dce1d2282cda8ce1 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 9 Sep 2015 12:32:07 -0700 Subject: Remove redundant NULL tests. GCC6 and Clang give warnings on redundant NULL tests of parameters that are declared with __nonnull_attribute__. Signed-off-by: Chih-Hung Hsieh Signed-off-by: Mark Wielaard --- libdw/dwarf_macro_getsrcfiles.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libdw/dwarf_macro_getsrcfiles.c') diff --git a/libdw/dwarf_macro_getsrcfiles.c b/libdw/dwarf_macro_getsrcfiles.c index cc190437..3b1794b1 100644 --- a/libdw/dwarf_macro_getsrcfiles.c +++ b/libdw/dwarf_macro_getsrcfiles.c @@ -36,9 +36,7 @@ int dwarf_macro_getsrcfiles (Dwarf *dbg, Dwarf_Macro *macro, Dwarf_Files **files, size_t *nfiles) { - if (macro == NULL) - return -1; - + /* macro is declared NN */ Dwarf_Macro_Op_Table *const table = macro->table; if (table->files == NULL) { -- cgit v1.2.3