unwind: remove a could of extraneous `else` (NFC)
Simplify `if return else return` by removing the unnecessary `else`.
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@372233 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/src/libunwind.cpp b/src/libunwind.cpp
index c90032b..31f30f5 100644
--- a/src/libunwind.cpp
+++ b/src/libunwind.cpp
@@ -171,8 +171,7 @@
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 @@
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)