4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-22 00:38:06 +08:00

Remove redundant check for NULL pointer in cygwin_exception::dump_exception

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-11-24 14:46:57 +01:00
parent 284bec3174
commit 6a6ae087e8

View File

@ -175,8 +175,6 @@ cygwin_exception::dump_exception ()
{
const char *exception_name = NULL;
if (e)
{
for (int i = 0; status_info[i].name; i++)
{
if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
@ -185,7 +183,6 @@ cygwin_exception::dump_exception ()
break;
}
}
}
#ifdef __x86_64__
if (exception_name)