socket: Remove redundant code

Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit f369d02932)
This commit is contained in:
Tilo Eckert
2018-11-15 10:39:05 +01:00
committed by Andreas Schneider
parent 709c48eab6
commit fe0331cf40

View File

@@ -274,9 +274,6 @@ int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p,
return -2;
}
if (nread == 0) {
if (p != NULL) {
ssh_poll_remove_events(p, POLLIN);
}
if (p != NULL) {
ssh_poll_remove_events(p, POLLIN);
}