summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/zonefs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zonefs/file.c b/fs/zonefs/file.c
index 738b0e28d74b..a545a6d9a32e 100644
--- a/fs/zonefs/file.c
+++ b/fs/zonefs/file.c
@@ -383,7 +383,7 @@ static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from)
struct block_device *bdev = inode->i_sb->s_bdev;
unsigned int max = bdev_max_zone_append_sectors(bdev);
struct bio *bio;
- ssize_t size;
+ ssize_t size = 0;
int nr_pages;
ssize_t ret;