[PATCH keyboard] Small cleanup.

Alexandr Shadchin alexandr.shadchin at gmail.com
Tue Nov 30 02:36:36 PST 2010


Removed unnecessary code:
	case PCCONS:
		break;

Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin at gmail.com>
---
 src/bsd_kbd.c |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/src/bsd_kbd.c b/src/bsd_kbd.c
index 35d3649..a3f6321 100644
--- a/src/bsd_kbd.c
+++ b/src/bsd_kbd.c
@@ -83,11 +83,6 @@ SetKbdLeds(InputInfoPtr pInfo, int leds)
 #endif
 
     switch (pKbd->consType) {
-
-#ifdef PCCONS_SUPPORT
-	case PCCONS:
-		break;
-#endif
 #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
 	case SYSCONS:
 	case PCVT:
@@ -109,11 +104,6 @@ GetKbdLeds(InputInfoPtr pInfo)
     int leds = 0, real_leds = 0;
 
     switch (pKbd->consType) {
-
-#ifdef PCCONS_SUPPORT
-	case PCCONS:
-	     break;
-#endif
 #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
 	case SYSCONS:
 	case PCVT:
@@ -144,12 +134,8 @@ static void
 SetKbdRepeat(InputInfoPtr pInfo, char rad)
 {
     KbdDevPtr pKbd = (KbdDevPtr) pInfo->private;
-    switch (pKbd->consType) {
 
-#ifdef PCCONS_SUPPORT
-	case PCCONS:
-		break;
-#endif
+    switch (pKbd->consType) {
 #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT)
 	case SYSCONS:
 	case PCVT:
-- 
1.7.3.2



More information about the xorg-devel mailing list