Remove redundant check for NULL pointer in cygwin_exception::dump_exception
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -175,8 +175,6 @@ cygwin_exception::dump_exception ()
|
|||||||
{
|
{
|
||||||
const char *exception_name = NULL;
|
const char *exception_name = NULL;
|
||||||
|
|
||||||
if (e)
|
|
||||||
{
|
|
||||||
for (int i = 0; status_info[i].name; i++)
|
for (int i = 0; status_info[i].name; i++)
|
||||||
{
|
{
|
||||||
if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
|
if (status_info[i].code == (NTSTATUS) e->ExceptionCode)
|
||||||
@ -185,7 +183,6 @@ cygwin_exception::dump_exception ()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
if (exception_name)
|
if (exception_name)
|
||||||
|
Reference in New Issue
Block a user