summaryrefslogtreecommitdiffstats
path: root/libebl/ebldwarftoregno.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/ebldwarftoregno.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/ebldwarftoregno.c')
-rw-r--r--libebl/ebldwarftoregno.c3
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);
}