From d266cf666ad0b47a23ffcb13ed48e2f529bf7029 Mon Sep 17 00:00:00 2001 From: Murat Seker Date: Sun, 23 Apr 2017 23:59:14 +0300 Subject: [PATCH] Redundant close of file vfs_close is always called with NULL since fsd->vfs_file checked against NULL at the beginning of function --- ftpd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ftpd.c b/ftpd.c index 4f142ce..1f4874a 100644 --- a/ftpd.c +++ b/ftpd.c @@ -449,8 +449,6 @@ static void send_file(struct ftpd_datastate *fsd, struct tcp_pcb *pcb) fsm = fsd->msgfs; msgpcb = fsd->msgpcb; - vfs_close(fsd->vfs_file); - fsd->vfs_file = NULL; ftpd_dataclose(pcb, fsd); fsm->datapcb = NULL; fsm->datafs = NULL;