[PATCH] Remove redundant condition checking.

Yao Qi
2013-01-15T09:35:35Z

Hi,
Just find here is another redundant checking,

if (lwp->bp_reinsert != 0) <-- [1]
{
if (debug_threads)
fprintf (stderr, " pending reinsert at 0x%s\n",
paddress (lwp->bp_reinsert));

if (lwp->bp_reinsert != 0 && can_hardware_single_step ()) <-- [2]

This patch is to remove the redundant one in [2].

gdb/gdbserver:

2013-01-15 Yao Qi <yao@codesourcery.com>

* linux-low.c (linux_resume_one_lwp): Don't check
'(lwp->bp_reinsert != 0'.
---
gdb/gdbserver/linux-low.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 89988eb..8988509 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -3192,7 +3192,7 @@ linux_resume_one_lwp (struct lwp_info *lwp,
fprintf (stderr, " pending reinsert at 0x%s\n",
paddress (lwp->bp_reinsert));

- if (lwp->bp_reinsert != 0 && can_hardware_single_step ())
+ if (can_hardware_single_step ())
{
if (fast_tp_collecting == 0)
{
--
1.7.7.6