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 --- libebl/eblunwind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libebl/eblunwind.c') 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); } -- cgit v1.2.3