From 197593b24b4744e7ad7e07828010c207cd0b9626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sat, 21 Nov 2015 02:28:10 +0100 Subject: [PATCH] Remove check for impossible condition Because `&thread->gpr` cannot be NULL. --- libr/debug/p/native/xnu/xnu_threads.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libr/debug/p/native/xnu/xnu_threads.c b/libr/debug/p/native/xnu/xnu_threads.c index b8d97ff490..6e1ec8b31e 100644 --- a/libr/debug/p/native/xnu/xnu_threads.c +++ b/libr/debug/p/native/xnu/xnu_threads.c @@ -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;