summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/tftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/tftp.c b/fs/tftp.c
index a63b133caa..c6edc9969f 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -384,10 +384,10 @@ static int tftp_allocate_transfer(struct file_priv *priv)
priv->fifo = NULL;
goto err;
}
- } else {
- INIT_LIST_HEAD(&priv->cache.blocks);
}
+ INIT_LIST_HEAD(&priv->cache.blocks);
+
return 0;
err: