summaryrefslogtreecommitdiff
path: root/src/libunwind.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-10-23 17:52:37 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-10-23 17:52:37 +0000
commit067b0ac8a70ff539e3dbbe2be60c3ac441c8305b (patch)
tree261de59dded1643a4a128978fefa90ea5a193a50 /src/libunwind.cpp
parentcd5ff43da54e357cd6a79fea21f2ae1afb8d3660 (diff)
Notes
Diffstat (limited to 'src/libunwind.cpp')
-rw-r--r--src/libunwind.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libunwind.cpp b/src/libunwind.cpp
index c90032bd66c95..31f30f5cd709c 100644
--- a/src/libunwind.cpp
+++ b/src/libunwind.cpp
@@ -171,8 +171,7 @@ _LIBUNWIND_HIDDEN int __unw_get_proc_info(unw_cursor_t *cursor,
co->getInfo(info);
if (info->end_ip == 0)
return UNW_ENOINFO;
- else
- return UNW_ESUCCESS;
+ return UNW_ESUCCESS;
}
_LIBUNWIND_WEAK_ALIAS(__unw_get_proc_info, unw_get_proc_info)
@@ -194,8 +193,7 @@ _LIBUNWIND_HIDDEN int __unw_get_proc_name(unw_cursor_t *cursor, char *buf,
AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor;
if (co->getFunctionName(buf, bufLen, offset))
return UNW_ESUCCESS;
- else
- return UNW_EUNSPEC;
+ return UNW_EUNSPEC;
}
_LIBUNWIND_WEAK_ALIAS(__unw_get_proc_name, unw_get_proc_name)