Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5d09d68 authored by Roel Kluin's avatar Roel Kluin Committed by Jason Wessel
Browse files

kgdb,x86: remove redundant test



The for loop starts with a breakno of 0, and ends when it's 4. so
this test is always true.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent 3ef884b4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -220,7 +220,6 @@ 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);

		} else {