summaryrefslogtreecommitdiffstats
path: root/libebl/eblunwind.c
diff options
context:
space:
mode:
authorChih-Hung Hsieh <[email protected]>2015-09-09 12:32:07 -0700
committerMark Wielaard <[email protected]>2015-09-14 13:41:12 +0200
commit2d982861e5e23d38653df7d8dce1d2282cda8ce1 (patch)
tree9b8f87ff115c16043e4a0e41faf4d9ca87795efb /libebl/eblunwind.c
parent879850950bd56255cb5796c86b62bf3bdedd4fb9 (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 'libebl/eblunwind.c')
-rw-r--r--libebl/eblunwind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libebl/eblunwind.c b/libebl/eblunwind.c
index 1251c1b5..2970d03e 100644
--- a/libebl/eblunwind.c
+++ b/libebl/eblunwind.c
@@ -37,7 +37,8 @@ ebl_unwind (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc,
ebl_tid_registers_get_t *getfunc, ebl_pid_memory_read_t *readfunc,
void *arg, bool *signal_framep)
{
- if (ebl == NULL || ebl->unwind == NULL)
+ /* ebl is declared NN */
+ if (ebl->unwind == NULL)
return false;
return ebl->unwind (ebl, pc, setfunc, getfunc, readfunc, arg, signal_framep);
}