diff options
author | Alexandr Shadchin <shadchin@cvs.openbsd.org> | 2012-08-10 17:49:32 +0000 |
---|---|---|
committer | Alexandr Shadchin <shadchin@cvs.openbsd.org> | 2012-08-10 17:49:32 +0000 |
commit | 0cee9cb15da335548bc0f586fa041d1627c2b85b (patch) | |
tree | 0a3add3489c4db2e1d865fd1502e3cac2694a85b /sys/arch/sgi | |
parent | de3317878fe731812fe3a89da7aaa2ef20d57f76 (diff) |
simplify pckbc_xt_translation()
* call only for set translation on (once in /sys/dev/pckbd.c)
therefore we can delete unused code.
* change behavior (more standard) - return zero on success
ok miod@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r-- | sys/arch/sgi/dev/iockbc.c | 6 | ||||
-rw-r--r-- | sys/arch/sgi/dev/mkbc.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sgi/dev/iockbc.c b/sys/arch/sgi/dev/iockbc.c index 59d334cf98a..adc4f9627e2 100644 --- a/sys/arch/sgi/dev/iockbc.c +++ b/sys/arch/sgi/dev/iockbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iockbc.c,v 1.7 2010/12/03 18:29:56 shadchin Exp $ */ +/* $OpenBSD: iockbc.c,v 1.8 2012/08/10 17:49:31 shadchin Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Joel Sing <jsing@openbsd.org> * @@ -785,10 +785,10 @@ restart: */ int -pckbc_xt_translation(pckbc_tag_t self, pckbc_slot_t slot, int on) +pckbc_xt_translation(pckbc_tag_t self) { /* Translation isn't supported... */ - return 0; + return (-1); } /* For use in autoconfiguration. */ diff --git a/sys/arch/sgi/dev/mkbc.c b/sys/arch/sgi/dev/mkbc.c index 71576b9ca53..751477ec2fd 100644 --- a/sys/arch/sgi/dev/mkbc.c +++ b/sys/arch/sgi/dev/mkbc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkbc.c,v 1.11 2011/04/07 15:30:16 miod Exp $ */ +/* $OpenBSD: mkbc.c,v 1.12 2012/08/10 17:49:31 shadchin Exp $ */ /* * Copyright (c) 2006, 2007, Joel Sing @@ -659,10 +659,10 @@ restart: */ int -pckbc_xt_translation(pckbc_tag_t self, pckbc_slot_t slot, int on) +pckbc_xt_translation(pckbc_tag_t self) { /* Translation isn't supported... */ - return 0; + return (-1); } /* For use in autoconfiguration. */ |