Re: [PATCH] console keyboard mapping broken by 04c71976

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Samuel Thibault
Date: Wednesday, June 11, 2008 - 6:18 pm

Ok, a closer look agrees with the patch, but no need to keep the uni
variable then, here is an updated patch.  Thanks!

From: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 7f7e798..16492b7 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -678,10 +678,5 @@
 static void k_self(struct vc_data *vc, unsigned char value, char up_flag)
 {
-	unsigned int uni;
-	if (kbd->kbdmode == VC_UNICODE)
-		uni = value;
-	else
-		uni = conv_8bit_to_uni(value);
-	k_unicode(vc, uni, up_flag);
+	k_unicode(vc, conv_8bit_to_uni(value), up_flag);
 }

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] console keyboard mapping broken by 04c71976, Jiri Bohac, (Wed Jun 11, 6:48 am)
Re: [PATCH] console keyboard mapping broken by 04c71976, Samuel Thibault, (Wed Jun 11, 7:03 am)
Re: [PATCH] console keyboard mapping broken by 04c71976, Samuel Thibault, (Wed Jun 11, 8:23 am)
Re: [PATCH] console keyboard mapping broken by 04c71976, Samuel Thibault, (Wed Jun 11, 6:18 pm)
Re: [PATCH] console keyboard mapping broken by 04c71976, Andrew Morton, (Wed Jun 11, 6:27 pm)
Re: [PATCH] console keyboard mapping broken by 04c71976, Samuel Thibault, (Wed Jun 11, 6:36 pm)