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/ebldwarftoregno.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/ebldwarftoregno.c')
-rw-r--r-- | libebl/ebldwarftoregno.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libebl/ebldwarftoregno.c b/libebl/ebldwarftoregno.c index 8fb85401..c6644969 100644 --- a/libebl/ebldwarftoregno.c +++ b/libebl/ebldwarftoregno.c @@ -35,7 +35,6 @@ bool ebl_dwarf_to_regno (Ebl *ebl, unsigned *regno) { - if (ebl == NULL) - return false; + /* ebl is declared NN */ return ebl->dwarf_to_regno == NULL ? true : ebl->dwarf_to_regno (ebl, regno); } |