aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-04-12 16:49:30 +0100
committerPedro Alves <palves@redhat.com>2016-04-12 16:53:01 +0100
commit5f5219fc34f7557296272230123a3837960a6f09 (patch)
treeebc0ef69ac7b5edaffda6d69ed17c8cef86b864a /gdb/serial.c
parentacd5494dd868ae849b4544abdc50dc8b10ba6f54 (diff)
downloadgdb-5f5219fc34f7557296272230123a3837960a6f09.zip
gdb-5f5219fc34f7557296272230123a3837960a6f09.tar.gz
gdb-5f5219fc34f7557296272230123a3837960a6f09.tar.bz2
Remove unused struct serial::name field
Not used by anything. gdb/ChangeLog: 2016-04-12 Pedro Alves <palves@redhat.com> * serial.c (serial_open, serial_fdopen_ops, do_serial_close): Remove references to name. * serial.h (struct serial) <name>: Delete.
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 19b1c2f..5d242b9 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -226,7 +226,6 @@ serial_open (const char *name)
return NULL;
}
- scb->name = xstrdup (name);
scb->next = scb_base;
scb->debug_p = 0;
scb->async_state = 0;
@@ -271,7 +270,6 @@ serial_fdopen_ops (const int fd, const struct serial_ops *ops)
scb->error_fd = -1;
scb->refcnt = 1;
- scb->name = NULL;
scb->next = scb_base;
scb->debug_p = 0;
scb->async_state = 0;
@@ -315,9 +313,6 @@ do_serial_close (struct serial *scb, int really_close)
if (really_close)
scb->ops->close (scb);
- if (scb->name)
- xfree (scb->name);
-
/* For serial_is_open. */
scb->bufp = NULL;