diff options
author | Chih-Hung Hsieh <[email protected]> | 2015-09-09 12:32:07 -0700 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2015-09-14 13:41:12 +0200 |
commit | 2d982861e5e23d38653df7d8dce1d2282cda8ce1 (patch) | |
tree | 9b8f87ff115c16043e4a0e41faf4d9ca87795efb /libdw/dwarf_macro_getsrcfiles.c | |
parent | 879850950bd56255cb5796c86b62bf3bdedd4fb9 (diff) |
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 <[email protected]>
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdw/dwarf_macro_getsrcfiles.c')
-rw-r--r-- | libdw/dwarf_macro_getsrcfiles.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) { |