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/eblinitreg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libebl/eblinitreg.c') diff --git a/libebl/eblinitreg.c b/libebl/eblinitreg.c index 5729b3cc..8a3fb18a 100644 --- a/libebl/eblinitreg.c +++ b/libebl/eblinitreg.c @@ -47,7 +47,8 @@ ebl_set_initial_registers_tid (Ebl *ebl, pid_t tid, size_t ebl_frame_nregs (Ebl *ebl) { - return ebl == NULL ? 0 : ebl->frame_nregs; + /* ebl is declared NN */ + return ebl->frame_nregs; } GElf_Addr -- cgit v1.2.3