From b7d2abe09591393cfcd1041a4ac06a2cae5c411c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 9 Sep 2010 14:35:16 +0000 Subject: [PATCH] Remove redundant check for NULL in sshfwd_close(). The thing we're testing against NULL has already been dereferenced by the time we bother to test it, so it's a bit pointless - and in any case, no null pointer can come to this function from any existing call site. [originally from svn r8990] --- ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh.c b/ssh.c index 43d642dd..401706c4 100644 --- a/ssh.c +++ b/ssh.c @@ -4164,7 +4164,7 @@ void sshfwd_close(struct ssh_channel *c) if (ssh->state == SSH_STATE_CLOSED) return; - if (c && !c->closes) { + if (!c->closes) { /* * If halfopen is true, we have sent * CHANNEL_OPEN for this channel, but it hasn't even been -- 2.45.2