summaryrefslogtreecommitdiff
path: root/src/libunwind.cpp
diff options
context:
space:
mode:
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)