From c851c4a857aec23e21ca8769b92e862e6471c852 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 1 Jan 2023 11:54:04 +0100 Subject: term: Drop spurious deref That was a remnant of manual port lookup. --- term/users.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'term') diff --git a/term/users.c b/term/users.c index 59f02b66..b7429a4f 100644 --- a/term/users.c +++ b/term/users.c @@ -2181,19 +2181,12 @@ S_term_get_peername (struct trivfs_protid *cred, return EOPNOTSUPP; if (!cred || (cred->pi.class != tty_class && cred->pi.class != pty_class)) - { - if (cred) - ports_port_deref (cred); - return EOPNOTSUPP; - } + return EOPNOTSUPP; peer = (cred->pi.class == tty_class) ? ptyctl : termctl; if (bottom != &ptyio_bottom || !peer->hook) - { - ports_port_deref (cred); - return ENOENT; - } + return ENOENT; strcpy (name, (char *) peer->hook); -- cgit v1.2.3