aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-06-11 20:32:29 +0000
committerPedro Alves <palves@redhat.com>2012-06-11 20:32:29 +0000
commit318aa544a85db77feb3450ee9f4e7f37f2b2b9c0 (patch)
tree66cb2c668057e4a7cb17c3a1685fce0aa4b6ab7f /gdb/serial.c
parent0726159622540e146674fb0d096c4e2c77612155 (diff)
downloadgdb-318aa544a85db77feb3450ee9f4e7f37f2b2b9c0.zip
gdb-318aa544a85db77feb3450ee9f4e7f37f2b2b9c0.tar.gz
gdb-318aa544a85db77feb3450ee9f4e7f37f2b2b9c0.tar.bz2
2012-06-11 Pedro Alves <palves@redhat.com>
* serial.c (do_serial_close): Remove early return when SCB is null.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 3eed3b9..9b689ba 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -330,12 +330,6 @@ do_serial_close (struct serial *scb, int really_close)
serial_logfp = NULL;
}
-/* This is bogus. It's not our fault if you pass us a bad scb...! Rob, you
- should fix your code instead. */
-
- if (!scb)
- return;
-
scb->refcnt--;
if (scb->refcnt > 0)
return;