diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-05-01 02:24:40 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-05-01 02:24:40 +0000 |
commit | 041734d859706b31122dfd0907486063371a4693 (patch) | |
tree | 44b464b330dae021afa2e479507a916449af690d /src | |
parent | fa12b67771f73f0e7acf2308a13cf33b8c619884 (diff) | |
download | coreboot-041734d859706b31122dfd0907486063371a4693.tar.xz |
The semantics of the changed code are pretty simple and looking at
other parts of the same file shows that it is a common construct.
Remove the shadowed variable.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4241 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/pc80/keyboard.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pc80/keyboard.c b/src/pc80/keyboard.c index 325e2eabca..e255132a7e 100644 --- a/src/pc80/keyboard.c +++ b/src/pc80/keyboard.c @@ -112,11 +112,10 @@ static void pc_keyboard_init(struct pc_keyboard *keyboard) outb(0x60, 0x64); if (!kbc_input_buffer_empty()) return; outb(0x20, 0x60); /* send cmd: enable keyboard and IRQ 1 */ - u8 broken_resend = 10; if ((inb(0x64) & 0x01)) { regval = inb(0x60); } - --broken_resend; + --resend; } while (regval == 0xFE && resend > 0); /* clean up any junk that might have been in the keyboard */ |