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 /libdwfl/dwfl_frame.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 'libdwfl/dwfl_frame.c')
| -rw-r--r-- | libdwfl/dwfl_frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdwfl/dwfl_frame.c b/libdwfl/dwfl_frame.c index f6f86c0d..a91a1d68 100644 --- a/libdwfl/dwfl_frame.c +++ b/libdwfl/dwfl_frame.c @@ -143,7 +143,8 @@ dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, /* Reset any previous error, we are just going to try again. */ dwfl->attacherr = DWFL_E_NOERROR; - if (thread_callbacks == NULL || thread_callbacks->next_thread == NULL + /* thread_callbacks is declared NN */ + if (thread_callbacks->next_thread == NULL || thread_callbacks->set_initial_registers == NULL) { dwfl->attacherr = DWFL_E_INVALID_ARGUMENT; |
