diff options
author | Pedro Alves <palves@redhat.com> | 2012-06-11 20:32:28 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-11 20:32:28 +0000 |
commit | f1bef71ff8089217ade0f121c05471b0175701cd (patch) | |
tree | 25ebf2a1da0abf67c61fe7c947ad2723b4182752 /gdb/serial.c | |
parent | 2131d06f046e45da3d79e3bef0480cc930c46438 (diff) | |
download | gdb-f1bef71ff8089217ade0f121c05471b0175701cd.tar.gz |
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.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/serial.c b/gdb/serial.c index 3eed3b9dbcb..9b689ba6e68 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; |