Remove check for impossible condition

Because `&thread->gpr` cannot be NULL.
This commit is contained in:
Ole André Vadla Ravnås 2015-11-21 02:28:10 +01:00 committed by pancake
parent 7894125577
commit 197593b24b

View File

@ -100,10 +100,6 @@ static bool xnu_thread_get_gpr(RDebug *dbg, xnu_thread_t *thread) {
return false;
}
regs = thread->state = (R_REG_T*)&thread->gpr;
if (!regs) {
eprintf ("no gpr ptr set\n");
return false;
}
thread->state_size = sizeof (thread->gpr);
#if __arm || __arm64 || __aarch64
thread->flavor = regs->ash.flavor = ARM_UNIFIED_THREAD_STATE;