Btrfs: fix compiler warning in file.c
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 30 Mar 2011 00:57:23 +0000 (00:57 +0000)
committerChris Mason <chris.mason@oracle.com>
Tue, 5 Apr 2011 05:19:41 +0000 (01:19 -0400)
commitc9149235a42ab93914434fff45c44b45023363f3
tree827035f0710a01bf35c5c365387f650addfe647f
parentd9d04879321af570ea7285c6dad92d9c3cd108a1
Btrfs: fix compiler warning in file.c

While compiling Btrfs, I got following messages:

  CC [M]  fs/btrfs/file.o
fs/btrfs/file.c: In function '__btrfs_buffered_write':
fs/btrfs/file.c:909: warning: 'ret' may be used uninitialized in this function
  CC [M]  fs/btrfs/tree-defrag.o

This patch fixes compiler warning.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c