summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-02 20:13:49 (GMT)
committerChris Mason <chris.mason@oracle.com>2008-09-25 15:04:02 (GMT)
commitb9d86667c94e5fe4bf9f6aa500e7ff1138e717ff (patch)
tree2932ca5389b8985b234bd3d59d0fbf1c04398927 /fs/btrfs
parent12fa8ec64f445aa932ba154053fe95432f30f2c6 (diff)
downloadlinux-b9d86667c94e5fe4bf9f6aa500e7ff1138e717ff.tar.xz
Btrfs: Silence bogus inode.c compiler warnings
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index c6fae29..5204599 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2035,12 +2035,12 @@ fail:
static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
{
- struct inode *inode;
+ struct inode *inode = NULL;
struct btrfs_trans_handle *trans;
struct btrfs_root *root = BTRFS_I(dir)->root;
int err = 0;
int drop_on_err = 0;
- u64 objectid;
+ u64 objectid = 0;
unsigned long nr = 1;
mutex_lock(&root->fs_info->fs_mutex);