mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
Remove check for impossible condition
Because `&thread->gpr` cannot be NULL.
This commit is contained in:
parent
7894125577
commit
197593b24b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user