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 /libebl/eblinitreg.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 'libebl/eblinitreg.c')
| -rw-r--r-- | libebl/eblinitreg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
