kgdb,x86: remove redundant test
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 11 Dec 2009 14:43:12 +0000 (08:43 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 11 Dec 2009 14:43:12 +0000 (08:43 -0600)
The for loop starts with a breakno of 0, and ends when it's 4. so
this test is always true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
arch/x86/kernel/kgdb.c

index 20a5b36..f93d015 100644 (file)
@@ -220,8 +220,7 @@ static void kgdb_correct_hw_break(void)
                        dr7 |= ((breakinfo[breakno].len << 2) |
                                 breakinfo[breakno].type) <<
                               ((breakno << 2) + 16);
-                       if (breakno >= 0 && breakno <= 3)
-                               set_debugreg(breakinfo[breakno].addr, breakno);
+                       set_debugreg(breakinfo[breakno].addr, breakno);
 
                } else {
                        if ((dr7 & breakbit) && !breakinfo[breakno].enabled) {