]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Btrfs: Silence bogus inode.c compiler warnings
authorChris Mason <chris.mason@oracle.com>
Fri, 2 May 2008 20:13:49 +0000 (16:13 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

index c6fae29c0b9e9d8a248595f5a90fc147ff9f517e..5204599e430933a8fb806c8a1979b85954e8a663 100644 (file)
@@ -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);