diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-05-26 11:54:32 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-05-26 11:54:32 +0000 |
commit | 9b188af13cfbcdc32c880c5110c23855b02acb3c (patch) | |
tree | e55708a0564b13c180f6e25a2ed24724571a805c /sys/dev/sio | |
parent | e8d86c0e50f38582fa37fe571c0635153991bbab (diff) | |
download | src-9b188af13cfbcdc32c880c5110c23855b02acb3c.tar.gz src-9b188af13cfbcdc32c880c5110c23855b02acb3c.zip |
Eliminate gdb_checkc member from GDB_DBGPORT(), it is never used.
Use polling behaviour for gdb_getc() where convenient, this edges us
closer to the console code.
Notes
Notes:
svn path=/head/; revision=158950
Diffstat (limited to 'sys/dev/sio')
-rw-r--r-- | sys/dev/sio/sio.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 65e368512fdf..d815dc6b2fee 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -2577,8 +2577,7 @@ static gdb_term_f siogdbterm; static gdb_getc_f siogdbgetc; static gdb_putc_f siogdbputc; -GDB_DBGPORT(sio, siogdbprobe, siogdbinit, siogdbterm, NULL, - siogdbgetc, siogdbputc); +GDB_DBGPORT(sio, siogdbprobe, siogdbinit, siogdbterm, siogdbgetc, siogdbputc); static int siogdbprobe(void) @@ -2605,12 +2604,7 @@ siogdbputc(int c) static int siogdbgetc(void) { - int c; - - do - c = sio_cngetc(NULL); - while (c == -1); - return (c); + return (sio_cngetc(NULL)); } #endif |