Btrfs: fix compiler warning in file.c
diff mbox

Message ID 4D927FF3.6050300@jp.fujitsu.com
State New, archived
Headers show

Commit Message

Tsutomu Itoh March 30, 2011, 12:57 a.m. UTC
None

Patch
diff mbox

diff -urNp linux-2.6.39-rc1/fs/btrfs/file.c linux-2.6.39-rc1.new/fs/btrfs/file.c
--- linux-2.6.39-rc1/fs/btrfs/file.c	2011-03-30 04:09:47.000000000 +0900
+++ linux-2.6.39-rc1.new/fs/btrfs/file.c	2011-03-30 09:41:49.000000000 +0900
@@ -906,7 +906,7 @@  static noinline ssize_t __btrfs_buffered
 	unsigned long last_index;
 	size_t num_written = 0;
 	int nrptrs;
-	int ret;
+	int ret = 0;
 
 	nrptrs = min((iov_iter_count(i) + PAGE_CACHE_SIZE - 1) /
 		     PAGE_CACHE_SIZE, PAGE_CACHE_SIZE /